diff options
| author | Yukihiro Matz Matsumoto <[email protected]> | 2012-12-18 03:09:44 +0900 |
|---|---|---|
| committer | Yukihiro Matz Matsumoto <[email protected]> | 2012-12-18 03:09:44 +0900 |
| commit | 24feb401c1b7c3bc63c9783bc4d21d3518da4584 (patch) | |
| tree | 4c0984a3ba22ab05962a52f3fde48c3828194d23 /src/codegen.c | |
| parent | 46e3115a9bec29db2411cfd4174d3bfc287614c6 (diff) | |
| download | mruby-24feb401c1b7c3bc63c9783bc4d21d3518da4584.tar.gz mruby-24feb401c1b7c3bc63c9783bc4d21d3518da4584.zip | |
codedump should print relative offset for irep in OP_LAMBDA
Diffstat (limited to 'src/codegen.c')
| -rw-r--r-- | src/codegen.c | 2 |
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)); |
