diff options
| author | Jun Hiroe <[email protected]> | 2013-07-12 01:00:50 +0900 |
|---|---|---|
| committer | Jun Hiroe <[email protected]> | 2013-07-12 01:00:50 +0900 |
| commit | 883c45b931a7f1ed44fa3c629520f5481fe4fad3 (patch) | |
| tree | 758c70450d3ad9eea9e69e8f873731e389621db4 /src/backtrace.c | |
| parent | 2fd57d151908d2bd3d9a4746a05462eef6afe794 (diff) | |
| download | mruby-883c45b931a7f1ed44fa3c629520f5481fe4fad3.tar.gz mruby-883c45b931a7f1ed44fa3c629520f5481fe4fad3.zip | |
Replace mrb_intern() func with mrb_intern2() func or mrb_intern_cstr() func.
Diffstat (limited to 'src/backtrace.c')
| -rw-r--r-- | src/backtrace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backtrace.c b/src/backtrace.c index d5d0818ae..e05ad4326 100644 --- a/src/backtrace.c +++ b/src/backtrace.c @@ -18,7 +18,7 @@ mrb_print_backtrace(mrb_state *mrb) int i, line; fputs("trace:\n", stderr); - ciidx = mrb_fixnum(mrb_obj_iv_get(mrb, mrb->exc, mrb_intern(mrb, "ciidx"))); + ciidx = mrb_fixnum(mrb_obj_iv_get(mrb, mrb->exc, mrb_intern2(mrb, "ciidx", 5))); if (ciidx >= mrb->c->ciend - mrb->c->cibase) ciidx = 10; /* ciidx is broken... */ @@ -41,7 +41,7 @@ mrb_print_backtrace(mrb_state *mrb) pc = mrb->c->cibase[i+1].pc; } else { - pc = (mrb_code*)mrb_voidp(mrb_obj_iv_get(mrb, mrb->exc, mrb_intern(mrb, "lastpc"))); + pc = (mrb_code*)mrb_voidp(mrb_obj_iv_get(mrb, mrb->exc, mrb_intern2(mrb, "lastpc", 6))); } if (irep->iseq <= pc && pc < irep->iseq + irep->ilen) { line = irep->lines[pc - irep->iseq - 1]; |
