summaryrefslogtreecommitdiffhomepage
path: root/src/codedump.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2017-12-15 17:44:57 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2017-12-15 17:57:45 +0900
commit05129ab9b3934ebc26a11f28d7d995793ea8baa5 (patch)
treecb8d9da98ad7bebded3f47c4135686e8656edc5a /src/codedump.c
parent7ecb96a00af720ee30d002861fefc0f9ce515441 (diff)
downloadmruby-05129ab9b3934ebc26a11f28d7d995793ea8baa5.tar.gz
mruby-05129ab9b3934ebc26a11f28d7d995793ea8baa5.zip
Check if destinations are too distant; fix #3900 fix #3901
Diffstat (limited to 'src/codedump.c')
-rw-r--r--src/codedump.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/codedump.c b/src/codedump.c
index 7a14a393a..d79a65a70 100644
--- a/src/codedump.c
+++ b/src/codedump.c
@@ -189,13 +189,13 @@ codedump(mrb_state *mrb, mrb_irep *irep)
print_lv(mrb, irep, c, RA);
break;
case OP_JMP:
- printf("OP_JMP\t%03d\n", i+GETARG_sBx(c));
+ printf("OP_JMP\t%03d (%d)\n", i+GETARG_sBx(c), GETARG_sBx(c));
break;
case OP_JMPIF:
- printf("OP_JMPIF\tR%d\t%03d\n", GETARG_A(c), i+GETARG_sBx(c));
+ printf("OP_JMPIF\tR%d\t%03d (%d)\n", GETARG_A(c), i+GETARG_sBx(c), GETARG_sBx(c));
break;
case OP_JMPNOT:
- printf("OP_JMPNOT\tR%d\t%03d\n", GETARG_A(c), i+GETARG_sBx(c));
+ printf("OP_JMPNOT\tR%d\t%03d (%d)\n", GETARG_A(c), i+GETARG_sBx(c), GETARG_sBx(c));
break;
case OP_SEND:
printf("OP_SEND\tR%d\t:%s\t%d\n", GETARG_A(c),