summaryrefslogtreecommitdiff
path: root/vm_eval.c
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-29 11:42:53 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-29 11:42:53 +0000
commit3c65e0262b6b14b0a6dc901128df4c45bd547c2f (patch)
tree118775acce2347c7a45a29af979bb0c928be6d13 /vm_eval.c
parentbe41711465807d07521d5f71ffdfee18dcab33b5 (diff)
* vm_eval.c (rb_call0): gets rid of checking method cache twice.
* method.h (rb_get_method_entry): added a prototype of the function. (rb_method_entry_without_cache): more friendly name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24702 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 801070bed6..cad6de4494 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -222,7 +222,7 @@ rb_call0(VALUE recv, ID mid, int argc, const VALUE *argv,
}
klass = me->klass;
}
- else if ((me = rb_method_entry(klass, mid)) != 0 && me->def) {
+ else if ((me = rb_method_entry_without_cache(klass, mid)) != 0 && me->def) {
klass = me->klass;
}
else {