Constify irep members.

- `pool`
- `syms`
- `reps`
This commit is contained in:
Yukihiro "Matz" Matsumoto
2020-06-05 07:43:40 +09:00
parent 744ba80919
commit 5a3e014e49
21 changed files with 206 additions and 174 deletions
+1 -1
View File
@@ -868,7 +868,7 @@ obj_free(mrb_state *mrb, struct RBasic *obj, int end)
struct RProc *p = (struct RProc*)obj;
if (!MRB_PROC_CFUNC_P(p) && p->body.irep) {
mrb_irep *irep = p->body.irep;
mrb_irep *irep = (mrb_irep*)p->body.irep;
if (end) {
mrb_irep_cutref(mrb, irep);
}