ruby-changes:32691
From: nobu <ko1@a...>
Date: Fri, 31 Jan 2014 02:51:21 +0900 (JST)
Subject: [ruby-changes:32691] nobu:r44770 (trunk): vm_eval.c: compare method type
nobu 2014-01-31 02:51:17 +0900 (Fri, 31 Jan 2014) New Revision: 44770 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44770 Log: vm_eval.c: compare method type * vm_eval.c (vm_call0_body): compare method type with VM_METHOD_TYPE_ZSUPER. Modified files: trunk/vm_eval.c Index: vm_eval.c =================================================================== --- vm_eval.c (revision 44769) +++ vm_eval.c (revision 44770) @@ -198,7 +198,7 @@ vm_call0_body(rb_thread_t* th, rb_call_i https://github.com/ruby/ruby/blob/trunk/vm_eval.c#L198 ci->defined_class = RCLASS_SUPER(ci->defined_class); if (!ci->defined_class || !(ci->me = rb_method_entry(ci->defined_class, ci->mid, &ci->defined_class))) { - int ex = VM_METHOD_TYPE_ZSUPER ? NOEX_SUPER : 0; + int ex = type == VM_METHOD_TYPE_ZSUPER ? NOEX_SUPER : 0; ret = method_missing(ci->recv, ci->mid, ci->argc, argv, ex); goto success; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/