diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-16 13:13:50 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-16 13:13:50 +0000 |
commit | c3e8cca95040dbae915cad793ccb72f56021bd4a (patch) | |
tree | 8204dd2d27e0082b88d9975507b07f85fc050de1 /vm_core.h | |
parent | f242e17f9b011e1e78cf64eabf1d39d67a7ca274 (diff) |
* vm_core.h: constify rb_iseq_t::parent_iseq.
rb_iseq_t::local_iseq is not constant data because
local_iseq::flip_cnt can be modified (commentted).
* compile.c: catch up this fix.
* iseq.c: ditto.
* vm_insnhelper.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r-- | vm_core.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -336,8 +336,8 @@ struct rb_iseq_struct { struct iseq_catch_table *catch_table; /* for child iseq */ - struct rb_iseq_struct *parent_iseq; - struct rb_iseq_struct *local_iseq; + const struct rb_iseq_struct *parent_iseq; + struct rb_iseq_struct *local_iseq; /* local_iseq->flip_cnt can be modified */ /****************/ /* dynamic data */ |