diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-08-18 23:25:40 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-08-18 23:25:40 +0900 |
| commit | 6f61b35bcf2e0686027c1f94c5b1ef5706ccea7d (patch) | |
| tree | b34cd6e85842f4fb96b4b596bf5a7c1e554bc0ca /src/error.c | |
| parent | 83dab1ee0d0d3aa76e44f7fbf14360ee501be151 (diff) | |
| parent | 279c21b816777b8b25457b27fd1994a9fe359a98 (diff) | |
| download | mruby-6f61b35bcf2e0686027c1f94c5b1ef5706ccea7d.tar.gz mruby-6f61b35bcf2e0686027c1f94c5b1ef5706ccea7d.zip | |
Merge pull request #4637 from dearblue/immutable-iseq
Prohibit changes to iseq in principle
Diffstat (limited to 'src/error.c')
| -rw-r--r-- | src/error.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/error.c b/src/error.c index 664da3fd6..bb8a0ba98 100644 --- a/src/error.c +++ b/src/error.c @@ -198,11 +198,11 @@ static void exc_debug_info(mrb_state *mrb, struct RObject *exc) { mrb_callinfo *ci = mrb->c->ci; - mrb_code *pc = ci->pc; + const mrb_code *pc = ci->pc; if (mrb_obj_iv_defined(mrb, exc, mrb_intern_lit(mrb, "file"))) return; while (ci >= mrb->c->cibase) { - mrb_code *err = ci->err; + const mrb_code *err = ci->err; if (!err && pc) err = pc - 1; if (err && ci->proc && !MRB_PROC_CFUNC_P(ci->proc)) { |
