aboutsummaryrefslogtreecommitdiffstats
path: root/class.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-04 16:02:01 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-04 16:02:01 +0000
commit9e0f864cb366bddba962c8ebd81836e1f91a757a (patch)
tree9a2558aace8851c813640d209942f0b2633bee87 /class.c
parentc4a2a281da2f95f4cb95d303b729c3d944c5edba (diff)
downloadruby-9e0f864cb366bddba962c8ebd81836e1f91a757a.tar.gz
* method.h: constify rb_method_refined_t::orig_me.
Also constify the following functions. * rb_resolve_refined_method() * rb_method_entry_with_refinements() * rb_method_entry_without_refinements() * rb_method_entry_copy()'s parameter. * class.c: catch up this fix. * vm_insnhelper.c: ditto. * vm_method.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'class.c')
-rw-r--r--class.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/class.c b/class.c
index 94ddd7ccf5..1f35be413b 100644
--- a/class.c
+++ b/class.c
@@ -914,7 +914,7 @@ move_refined_method(st_data_t key, st_data_t value, st_data_t data)
if (me->def->type == VM_METHOD_TYPE_REFINED) {
if (me->def->body.refined.orig_me) {
- rb_method_entry_t *orig_me = me->def->body.refined.orig_me, *new_me;
+ const rb_method_entry_t *orig_me = me->def->body.refined.orig_me, *new_me;
me->def->body.refined.orig_me = NULL;
new_me = rb_method_entry_clone(me);
st_add_direct(tbl, key, (st_data_t) new_me);