summaryrefslogtreecommitdiffhomepage
path: root/src/vm.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2013-03-17 05:15:40 -0700
committerYukihiro "Matz" Matsumoto <[email protected]>2013-03-17 05:15:40 -0700
commit7872bee70013ed0763942f6097ca0a61000fc92a (patch)
treeb6bcfbb9c90d42bfd906b5c458889524f8d6bfef /src/vm.c
parent526f4bf6400acdc69b214076946c65b09828f643 (diff)
parent83ddef68800a7b269cb08dd987e2f8df6f291710 (diff)
downloadmruby-7872bee70013ed0763942f6097ca0a61000fc92a.tar.gz
mruby-7872bee70013ed0763942f6097ca0a61000fc92a.zip
Merge pull request #1024 from crimsonwoods/remove_bitshifted_constants_larger_than_16bit
remove bit-shift operation.
Diffstat (limited to 'src/vm.c')
-rw-r--r--src/vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vm.c b/src/vm.c
index 5c19055d2..06963260a 100644
--- a/src/vm.c
+++ b/src/vm.c
@@ -45,7 +45,7 @@
/* Maximum stack depth. Should be set lower on memory constrained systems.
The value below allows about 60000 recursive calls in the simplest case. */
#ifndef MRB_STACK_MAX
-#define MRB_STACK_MAX ((1<<18) - MRB_STACK_GROWTH)
+#define MRB_STACK_MAX (0x40000 - MRB_STACK_GROWTH)
#endif
#ifdef VM_DEBUG