mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Fix wrong assertion in OP_SENDB.
Assertions were failing on exit if started with `mrb_fiber_resume()`. The bug that caused it was introduced by commit42308c42b5(#6106). The bug was moved by commit990e18ad59.
This commit is contained in:
@@ -1912,7 +1912,6 @@ RETRY_TRY_BLOCK:
|
||||
}
|
||||
|
||||
/* cfunc epilogue */
|
||||
mrb_assert(mrb->c->ci > mrb->c->cibase);
|
||||
mrb_gc_arena_shrink(mrb, ai);
|
||||
if (mrb->exc) goto L_RAISE;
|
||||
ci = mrb->c->ci;
|
||||
@@ -1929,6 +1928,7 @@ RETRY_TRY_BLOCK:
|
||||
syms = irep->syms;
|
||||
}
|
||||
}
|
||||
mrb_assert(ci > mrb->c->cibase);
|
||||
ci->stack[0] = recv;
|
||||
/* pop stackpos */
|
||||
ci = cipop(mrb);
|
||||
|
||||
Reference in New Issue
Block a user