diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-04 16:02:01 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-04 16:02:01 +0000 |
commit | 3619a8b52d876469193b3cecaa80d7ff13f09002 (patch) | |
tree | 9a2558aace8851c813640d209942f0b2633bee87 /vm_insnhelper.c | |
parent | 9d0fc5a8192655f76ad296363c387242f6fe4b6f (diff) |
* 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 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index a64529fbb2..c90638ed8b 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -1136,7 +1136,7 @@ check_match(VALUE pattern, VALUE target, enum vm_check_match_type type) /* fall through */ case VM_CHECKMATCH_TYPE_CASE: { VALUE defined_class; - rb_method_entry_t *me = rb_method_entry_with_refinements(CLASS_OF(pattern), idEqq, &defined_class); + const rb_method_entry_t *me = rb_method_entry_with_refinements(CLASS_OF(pattern), idEqq, &defined_class); if (me) { return vm_call0(GET_THREAD(), pattern, idEqq, 1, &target, me, defined_class); } |