summaryrefslogtreecommitdiff
path: root/method.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-04 16:08:40 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-04 16:08:40 +0000
commit0f419d39b4eebe9b3726bec19472de48bb23ad03 (patch)
tree49cb1aa3d9a2cfbb3704c013d51fab99bdc32633 /method.h
parentd4e752134f74ba2cc82aeae07cc0f1974bf9fa6b (diff)
* vm_method.c (rb_add_method_iseq): use intermediate struct to
avoid initializing struct with variables. [Bug #11217] * method.h: add a comment about it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'method.h')
-rw-r--r--method.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/method.h b/method.h
index 0b07342615..4d1cf3e6fe 100644
--- a/method.h
+++ b/method.h
@@ -60,7 +60,7 @@ typedef struct rb_iseq_struct rb_iseq_t;
typedef struct rb_method_iseq_struct {
rb_iseq_t * const iseqptr; /* should be separated from iseqval */
rb_cref_t * const cref; /* shoudl be marked */
-} rb_method_iseq_t;
+} rb_method_iseq_t; /* check rb_add_method_iseq() when modify the fields */
typedef struct rb_method_cfunc_struct {
VALUE (*func)(ANYARGS);