mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* class.c (method_entry_i): mtbl should not have `me' as NULL.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
93f88afbd6
commit
332210d441
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Thu Jun 4 04:50:12 2015 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* class.c (method_entry_i): mtbl should not have `me' as NULL.
|
||||
|
||||
Thu Jun 4 04:28:45 2015 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* class.c (clone_method): do not use me->klass, but use explicitly
|
||||
|
|
2
class.c
2
class.c
|
@ -1123,7 +1123,7 @@ method_entry_i(st_data_t key, st_data_t value, st_data_t data)
|
|||
struct method_entry_arg *arg = (struct method_entry_arg *)data;
|
||||
rb_method_visibility_t type;
|
||||
|
||||
if (me && me->def->type == VM_METHOD_TYPE_REFINED) {
|
||||
if (me->def->type == VM_METHOD_TYPE_REFINED) {
|
||||
VALUE klass = me->klass;
|
||||
me = rb_resolve_refined_method(Qnil, me, NULL);
|
||||
if (!me) return ST_CONTINUE;
|
||||
|
|
Loading…
Add table
Reference in a new issue