History

Minor updates to elinor's PR regarding building on MAC.

arr committed 9 years ago

Commit 0217bda1 parent 34cadb24 files · +10 −10Browse files

Showing the changes to src/vm/stack.cpp (1 of 4 files). Show all

Unified · Split

src/vm/stack.cpp+1−1
@@ -180,7 +180,7 @@ pointer_t vm_frame_t::fixed_point_register_2() const · 179 unmodified lines
180180 vm_stack_t::vm_stack_t(std::size_t stack_extent)
181181 : _mem{ std::make_unique<vm_stack_layout>(stack_extent) }
182182 {
183− assert(stack_extent != 0);
183+ assert(0 < stack_extent && stack_extent < static_cast<std::size_t>(std::numeric_limits<word_t>::max()));
184184 debug::log_msg(debug::component_trace_t::memory, debug::log_level_t::debug, "init: vm stack\n");
185185 }
186186