summaryrefslogtreecommitdiffhomepage
path: root/src/class.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2019-08-18 23:25:40 +0900
committerGitHub <[email protected]>2019-08-18 23:25:40 +0900
commit6f61b35bcf2e0686027c1f94c5b1ef5706ccea7d (patch)
treeb34cd6e85842f4fb96b4b596bf5a7c1e554bc0ca /src/class.c
parent83dab1ee0d0d3aa76e44f7fbf14360ee501be151 (diff)
parent279c21b816777b8b25457b27fd1994a9fe359a98 (diff)
downloadmruby-6f61b35bcf2e0686027c1f94c5b1ef5706ccea7d.tar.gz
mruby-6f61b35bcf2e0686027c1f94c5b1ef5706ccea7d.zip
Merge pull request #4637 from dearblue/immutable-iseq
Prohibit changes to iseq in principle
Diffstat (limited to 'src/class.c')
-rw-r--r--src/class.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class.c b/src/class.c
index 7e37973f6..43540dc3b 100644
--- a/src/class.c
+++ b/src/class.c
@@ -2123,7 +2123,7 @@ inspect_main(mrb_state *mrb, mrb_value mod)
return mrb_str_new_lit(mrb, "main");
}
-static mrb_code new_iseq[] = {
+static const mrb_code new_iseq[] = {
OP_ENTER, 0x0, 0x10, 0x1, /* OP_ENTER 0:0:1:0:0:0:1 */
OP_LOADSELF, 0x3, /* OP_LOADSELF R3 */
OP_SEND, 0x3, 0x0, 0x0, /* OP_SEND R3 :allocate 0 */