summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-bin-mrbc
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-bin-mrbc
parent744ba809198d79198246dbd6936a53fa98269ccb (diff)
downloadmruby-5a3e014e4914dbd6421dbbd81e889cd6952e924b.tar.gz
mruby-5a3e014e4914dbd6421dbbd81e889cd6952e924b.zip
Constify `irep` members.
- `pool` - `syms` - `reps`
Diffstat (limited to 'mrbgems/mruby-bin-mrbc')
-rw-r--r--mrbgems/mruby-bin-mrbc/tools/mrbc/mrbc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mrbgems/mruby-bin-mrbc/tools/mrbc/mrbc.c b/mrbgems/mruby-bin-mrbc/tools/mrbc/mrbc.c
index 4d984e773..5cd9a27fc 100644
--- a/mrbgems/mruby-bin-mrbc/tools/mrbc/mrbc.c
+++ b/mrbgems/mruby-bin-mrbc/tools/mrbc/mrbc.c
@@ -238,10 +238,10 @@ static int
dump_file(mrb_state *mrb, FILE *wfp, const char *outfile, struct RProc *proc, struct mrbc_args *args)
{
int n = MRB_DUMP_OK;
- mrb_irep *irep = proc->body.irep;
+ const mrb_irep *irep = proc->body.irep;
if (args->remove_lv) {
- mrb_irep_remove_lv(mrb, irep);
+ mrb_irep_remove_lv(mrb, (mrb_irep*)irep);
}
if (args->initname) {
n = mrb_dump_irep_cfunc(mrb, irep, args->flags, wfp, args->initname);