Commit 33320e28 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #2135 from mirichi/bug-fix

correct to compare MRB_STACK_GROWTH.
parents a5161e76 ad60f810
......@@ -143,7 +143,7 @@ stack_extend_alloc(mrb_state *mrb, int room)
/* Use linear stack growth.
It is slightly slower than doubling the stack space,
but it saves memory on small devices. */
if (room <= size)
if (room <= MRB_STACK_GROWTH)
size += MRB_STACK_GROWTH;
else
size += room;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment