summaryrefslogtreecommitdiff
path: root/vm_method.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-25 02:28:51 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-25 02:28:51 +0000
commit675ba20cea54714b90b20ba2e465b92e29ba8360 (patch)
treefeace02828dc30f2599529e36e5b688027e4daf6 /vm_method.c
parent9abf09133d2f4561801308234023e9405139f705 (diff)
no clearing method cache
* variable.c (set_const_visibility): return without clearing method cache if no arguments. * vm_method.c (set_method_visibility): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_method.c')
-rw-r--r--vm_method.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vm_method.c b/vm_method.c
index c9f04942e1..fe0df18af5 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -1276,6 +1276,7 @@ set_method_visibility(VALUE self, int argc, VALUE *argv, rb_method_flag_t ex)
if (argc == 0) {
rb_warning("%"PRIsVALUE" with no argument is just ignored",
QUOTE_ID(rb_frame_callee()));
+ return;
}
for (i = 0; i < argc; i++) {