summaryrefslogtreecommitdiffstats
path: root/vm_eval.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-24 11:47:00 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-24 11:47:00 +0000
commit0b844c130a2ddbf64d27cfcf3ff4681038ed8847 (patch)
tree8989f7e0eb41ecf20b74c9551687b06f28f010e4 /vm_eval.c
parentad9a4e2bcbbafccedd62ed8e5fb936b0b70f7d19 (diff)
downloadruby-0b844c130a2ddbf64d27cfcf3ff4681038ed8847.tar.gz
ruby-0b844c130a2ddbf64d27cfcf3ff4681038ed8847.tar.xz
ruby-0b844c130a2ddbf64d27cfcf3ff4681038ed8847.zip
* vm_insnhelper.c (vm_call_method): use class of method defined
instead of receiver's class on bmethod. fixes [ruby-core:20786] * bootstraptest/test_method.rb: add a test for above. * vm_insnhelper.c (vm_setup_method): remove unused parameter klass. * vm_insnhelper.h (CALL_METHOD): ditto. * insns.def, vm_eval.c: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_eval.c')
-rw-r--r--vm_eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_eval.c b/vm_eval.c
index 20d7c920d..aea00e2f5 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -52,7 +52,7 @@ vm_call0(rb_thread_t * th, VALUE klass, VALUE recv, VALUE id, ID oid,
*reg_cfp->sp++ = argv[i];
}
- vm_setup_method(th, reg_cfp, argc, blockptr, 0, iseqval, recv, klass);
+ vm_setup_method(th, reg_cfp, argc, blockptr, 0, iseqval, recv);
val = vm_exec(th);
break;
}