Showing the changes to src/vm/stack.cpp (1 of 4 files). Show all
Unified · Split
| @@ -180,7 +180,7 @@ pointer_t vm_frame_t::fixed_point_register_2() const · 179 unmodified lines | |||
| 180 | vm_stack_t::vm_stack_t(std::size_t stack_extent) | 180 | vm_stack_t::vm_stack_t(std::size_t stack_extent) |
| 181 | : _mem{ std::make_unique<vm_stack_layout>(stack_extent) } | 181 | : _mem{ std::make_unique<vm_stack_layout>(stack_extent) } |
| 182 | { | 182 | { |
| 183 | assert(stack_extent != 0); | 183 | assert(0 < stack_extent && stack_extent < static_cast<std::size_t>(std::numeric_limits<word_t>::max())); |
| 184 | debug::log_msg(debug::component_trace_t::memory, debug::log_level_t::debug, "init: vm stack\n"); | 184 | debug::log_msg(debug::component_trace_t::memory, debug::log_level_t::debug, "init: vm stack\n"); |
| 185 | } | 185 | } |
| 186 | 186 | ||