summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-proc-ext/src/proc.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-06-05 07:43:40 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2020-10-12 16:21:03 +0900
commit5a3e014e4914dbd6421dbbd81e889cd6952e924b (patch)
tree0975df1e1554c177d1b7adb1081d70d74c5bf505 /mrbgems/mruby-proc-ext/src/proc.c
parent744ba809198d79198246dbd6936a53fa98269ccb (diff)
downloadmruby-5a3e014e4914dbd6421dbbd81e889cd6952e924b.tar.gz
mruby-5a3e014e4914dbd6421dbbd81e889cd6952e924b.zip
Constify `irep` members.
- `pool` - `syms` - `reps`
Diffstat (limited to 'mrbgems/mruby-proc-ext/src/proc.c')
-rw-r--r--mrbgems/mruby-proc-ext/src/proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mrbgems/mruby-proc-ext/src/proc.c b/mrbgems/mruby-proc-ext/src/proc.c
index 5343c478f..a2f3ad101 100644
--- a/mrbgems/mruby-proc-ext/src/proc.c
+++ b/mrbgems/mruby-proc-ext/src/proc.c
@@ -21,7 +21,7 @@ mrb_proc_source_location(mrb_state *mrb, mrb_value self)
return mrb_nil_value();
}
else {
- mrb_irep *irep = p->body.irep;
+ const mrb_irep *irep = p->body.irep;
int32_t line;
const char *filename;
@@ -41,7 +41,7 @@ mrb_proc_inspect(mrb_state *mrb, mrb_value self)
mrb_str_cat_str(mrb, str, mrb_ptr_to_str(mrb, mrb_cptr(self)));
if (!MRB_PROC_CFUNC_P(p)) {
- mrb_irep *irep = p->body.irep;
+ const mrb_irep *irep = p->body.irep;
const char *filename;
int32_t line;
mrb_str_cat_lit(mrb, str, "@");