Commit 27c2416d authored by Yukihiro Matsumoto's avatar Yukihiro Matsumoto

stack_extend boundary condition was wrong

parent 6c2c5540
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment