mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
codegen.c: add a comment that notice rewind_pc calling convention.
`rewind_pc` should not be called when `s->pc` is `0` (top).
This commit is contained in:
@@ -463,8 +463,8 @@ mrb_prev_pc(codegen_scope *s, const mrb_code *pc)
|
||||
static void
|
||||
rewind_pc(codegen_scope *s)
|
||||
{
|
||||
const mrb_code *pc = mrb_prev_pc(s, pc_addr(s));
|
||||
s->pc = addr_pc(s, pc);
|
||||
/* should not be called when s->pc is 0 (top) */
|
||||
s->pc = addr_pc(s, mrb_prev_pc(s, pc_addr(s)));
|
||||
}
|
||||
|
||||
static struct mrb_insn_data
|
||||
|
||||
Reference in New Issue
Block a user