summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro Matz Matsumoto <[email protected]>2012-12-18 03:09:44 +0900
committerYukihiro Matz Matsumoto <[email protected]>2012-12-18 03:09:44 +0900
commit24feb401c1b7c3bc63c9783bc4d21d3518da4584 (patch)
tree4c0984a3ba22ab05962a52f3fde48c3828194d23
parent46e3115a9bec29db2411cfd4174d3bfc287614c6 (diff)
downloadmruby-24feb401c1b7c3bc63c9783bc4d21d3518da4584.tar.gz
mruby-24feb401c1b7c3bc63c9783bc4d21d3518da4584.zip
codedump should print relative offset for irep in OP_LAMBDA
-rw-r--r--src/codegen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen.c b/src/codegen.c
index 4244370e5..2afd3a146 100644
--- a/src/codegen.c
+++ b/src/codegen.c
@@ -2355,7 +2355,7 @@ codedump(mrb_state *mrb, int n)
break;
case OP_LAMBDA:
- printf("OP_LAMBDA\tR%d\tI(%d)\t%d\n", GETARG_A(c), n+GETARG_b(c), GETARG_c(c));
+ printf("OP_LAMBDA\tR%d\tI(%+d)\t%d\n", GETARG_A(c), GETARG_b(c), GETARG_c(c));
break;
case OP_RANGE:
printf("OP_RANGE\tR%d\tR%d\t%d\n", GETARG_A(c), GETARG_B(c), GETARG_C(c));