diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-06-03 14:13:25 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-06-03 14:13:25 +0900 |
| commit | 27c2416d201de968789917f2b6923d96ce1b953f (patch) | |
| tree | 21b5f81a757771dd6a63bae0b5dea508d9ff05b6 | |
| parent | 6c2c5540e2cb549579836d9a80417b18a296344c (diff) | |
| download | mruby-27c2416d201de968789917f2b6923d96ce1b953f.tar.gz mruby-27c2416d201de968789917f2b6923d96ce1b953f.zip | |
stack_extend boundary condition was wrong
| -rw-r--r-- | src/vm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -46,7 +46,7 @@ stack_extend(mrb_state *mrb, int room, int keep) { int size, off; - if (mrb->stack + room > mrb->stend) { + if (mrb->stack + room >= mrb->stend) { size = mrb->stend - mrb->stbase; off = mrb->stack - mrb->stbase; |
