summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-16 13:13:50 (GMT)
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-16 13:13:50 (GMT)
commitc3e8cca95040dbae915cad793ccb72f56021bd4a (patch)
tree8204dd2d27e0082b88d9975507b07f85fc050de1 /vm_core.h
parentf242e17f9b011e1e78cf64eabf1d39d67a7ca274 (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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm_core.h b/vm_core.h
index 20e4b5f..f98ba80 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -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 */