Commit 73727aeb authored by Hiroshi Mimaki's avatar Hiroshi Mimaki

Fixed a bug in INIT_DISPATCH for non direct threading; fix #4153

parent 31eb5f4e
...@@ -935,7 +935,7 @@ argnum_error(mrb_state *mrb, mrb_int num) ...@@ -935,7 +935,7 @@ argnum_error(mrb_state *mrb, mrb_int num)
#ifndef DIRECT_THREADED #ifndef DIRECT_THREADED
#define INIT_DISPATCH for (;;) { insn = BYTECODE_DECODER(*pc); pc++; CODE_FETCH_HOOK(mrb, irep, pc, regs); switch (insn) { #define INIT_DISPATCH for (;;) { insn = BYTECODE_DECODER(*pc); CODE_FETCH_HOOK(mrb, irep, pc, regs); switch (insn) {
#define CASE(insn,ops) case insn: pc++; FETCH_ ## ops ();; L_ ## insn ## _BODY: #define CASE(insn,ops) case insn: pc++; FETCH_ ## ops ();; L_ ## insn ## _BODY:
#define NEXT break #define NEXT break
#define JUMP NEXT #define JUMP NEXT
......
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