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 commit 42308c42b5 (#6106).
The bug was moved by commit 990e18ad59.
This commit is contained in:
dearblue
2024-03-08 21:56:00 +09:00
parent 9257a61b39
commit 9616971c70
+1 -1
View File
@@ -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);