summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormirichi <[email protected]>2014-04-26 19:37:53 +0900
committermirichi <[email protected]>2014-04-26 19:37:53 +0900
commitad60f81032241974858e3b4cbbda6aded5d9c56a (patch)
treeabed3d0e2c582a4e11b1c0d88e1756bae7b493c2 /src
parent5bf327497fad0b30475649190626b8646b613bb4 (diff)
downloadmruby-ad60f81032241974858e3b4cbbda6aded5d9c56a.tar.gz
mruby-ad60f81032241974858e3b4cbbda6aded5d9c56a.zip
The correct is to compare the MRB_STACK_GROWTH.
Diffstat (limited to 'src')
-rw-r--r--src/vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vm.c b/src/vm.c
index e49184543..df8fe934b 100644
--- a/src/vm.c
+++ b/src/vm.c
@@ -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;