summaryrefslogtreecommitdiffhomepage
path: root/src/codedump.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-08-07 12:12:24 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-08-07 12:12:24 +0900
commit35d230a6690003d94c76508281ae5aa3210b182c (patch)
treed9ac6110293b15ee5d81fa88acc1017f9ce13df1 /src/codedump.c
parent06f49b3f84e799f08a80b16054eda916f2d32819 (diff)
downloadmruby-35d230a6690003d94c76508281ae5aa3210b182c.tar.gz
mruby-35d230a6690003d94c76508281ae5aa3210b182c.zip
codedump.c: print two operands `R(x)` and `R(x+1)` for clarity.
Diffstat (limited to 'src/codedump.c')
-rw-r--r--src/codedump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codedump.c b/src/codedump.c
index f662e0cb3..fa06260f7 100644
--- a/src/codedump.c
+++ b/src/codedump.c
@@ -463,7 +463,7 @@ codedump(mrb_state *mrb, const mrb_irep *irep)
print_lv_a(mrb, irep, a);
break;
CASE(OP_STRCAT, B):
- printf("OP_STRCAT\tR%d\t", a);
+ printf("OP_STRCAT\tR%d\tR%d", a, a+1);
print_lv_a(mrb, irep, a);
break;
CASE(OP_HASH, BB):