mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #2135 from mirichi/bug-fix
correct to compare MRB_STACK_GROWTH.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user