diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-06-09 23:37:20 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-06-09 23:37:20 +0900 |
| commit | 4c69a9d09e687cac6e1b0e4b1e2fbde6f1910df5 (patch) | |
| tree | 0f2dba655f5b768bdee3ae3fc692b754cc507fc7 | |
| parent | a036cbea16f5c250af830794816040d19e531377 (diff) | |
| download | mruby-4c69a9d09e687cac6e1b0e4b1e2fbde6f1910df5.tar.gz mruby-4c69a9d09e687cac6e1b0e4b1e2fbde6f1910df5.zip | |
codedump should display proper L(n) for OP_STRING op
| -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 cec0d226f..79ba9e8c9 100644 --- a/src/codegen.c +++ b/src/codegen.c @@ -2994,7 +2994,7 @@ codedump(mrb_state *mrb, mrb_irep *irep) { mrb_value v = irep->pool[GETARG_Bx(c)]; mrb_value s = mrb_str_dump(mrb, mrb_str_new(mrb, RSTRING_PTR(v), RSTRING_LEN(v))); - printf("OP_STRING\tR%d\tL(%d)\t; %s", GETARG_A(c), GETARG_B(c), RSTRING_PTR(s)); + printf("OP_STRING\tR%d\tL(%d)\t; %s", GETARG_A(c), GETARG_Bx(c), RSTRING_PTR(s)); } print_lv(mrb, irep, c, RA); break; |
