The correct is to compare the MRB_STACK_GROWTH.

This commit is contained in:
mirichi
2014-04-26 19:37:53 +09:00
parent 5bf327497f
commit ad60f81032
+1 -1
View File
@@ -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;