1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* eval.c (rb_method_missing): avoid an warning "too many arguments

for format string" on "./ruby -ve 'def m() super end; m'".


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2007-06-17 02:12:14 +00:00
parent ccbdd90865
commit a03d4a0635
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Sun Jun 17 11:11:07 2007 Tanaka Akira <akr@fsij.org>
* eval.c (rb_method_missing): avoid an warning "too many arguments
for format string" on "./ruby -ve 'def m() super end; m'".
Sat Jun 16 22:24:17 2007 Tanaka Akira <akr@fsij.org>
* gc.c (garbage_collect): re-introduce ruby_current_node marking code.

2
eval.c
View file

@ -1303,7 +1303,7 @@ rb_method_missing(int argc, const VALUE *argv, VALUE obj)
exc = rb_eNameError;
}
else if (last_call_status & NOEX_SUPER) {
format = "super: no superclass method `%s'";
format = "super: no superclass method `%s' for %s";
}
if (!format) {
format = "undefined method `%s' for %s";