diff options
| author | mirichi <[email protected]> | 2014-04-26 19:37:53 +0900 |
|---|---|---|
| committer | mirichi <[email protected]> | 2014-04-26 19:37:53 +0900 |
| commit | ad60f81032241974858e3b4cbbda6aded5d9c56a (patch) | |
| tree | abed3d0e2c582a4e11b1c0d88e1756bae7b493c2 /src | |
| parent | 5bf327497fad0b30475649190626b8646b613bb4 (diff) | |
| download | mruby-ad60f81032241974858e3b4cbbda6aded5d9c56a.tar.gz mruby-ad60f81032241974858e3b4cbbda6aded5d9c56a.zip | |
The correct is to compare the MRB_STACK_GROWTH.
Diffstat (limited to 'src')
| -rw-r--r-- | src/vm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |
