aboutsummaryrefslogtreecommitdiffstats
path: root/method.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-18 08:01:13 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-18 08:01:13 +0000
commitd07448253f61bfc4490822b5b1cdefa59dc3bb47 (patch)
treef2dfffee7626fbfd2c8f1e72f54d161342b534f8 /method.h
parent46a01b392ebb573098a924e2ab0598a052392996 (diff)
downloadruby-d07448253f61bfc4490822b5b1cdefa59dc3bb47.tar.gz
* method.h: constify rb_method_alias_struct::original_me and
rb_method_refined_struct::orig_me. * class.c (move_refined_method): use RB_OBJ_WRITE() for me->def->body.refined.orig_me. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'method.h')
-rw-r--r--method.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/method.h b/method.h
index bd717eb3d1..4badd06db5 100644
--- a/method.h
+++ b/method.h
@@ -122,11 +122,11 @@ typedef struct rb_method_attr_struct {
} rb_method_attr_t;
typedef struct rb_method_alias_struct {
- const struct rb_method_entry_struct *original_me; /* original_me->klass is original owner */
+ const struct rb_method_entry_struct * const original_me; /* original_me->klass is original owner */
} rb_method_alias_t;
typedef struct rb_method_refined_struct {
- const struct rb_method_entry_struct *orig_me;
+ const struct rb_method_entry_struct * const orig_me;
} rb_method_refined_t;
typedef struct rb_method_definition_struct {