diff options
| author | dearblue <[email protected]> | 2019-08-18 14:45:35 +0900 |
|---|---|---|
| committer | dearblue <[email protected]> | 2019-08-18 15:00:32 +0900 |
| commit | 279c21b816777b8b25457b27fd1994a9fe359a98 (patch) | |
| tree | b34cd6e85842f4fb96b4b596bf5a7c1e554bc0ca /src/error.c | |
| parent | 83dab1ee0d0d3aa76e44f7fbf14360ee501be151 (diff) | |
| download | mruby-279c21b816777b8b25457b27fd1994a9fe359a98.tar.gz mruby-279c21b816777b8b25457b27fd1994a9fe359a98.zip | |
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)) { |
