summaryrefslogtreecommitdiffstats
path: root/proc.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-25 04:48:54 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-25 04:48:54 +0000
commit9c01b5e3a1c96642d3cb5bf0ef0f8989eb005fdc (patch)
tree51d4467f0825671430b5d16f0bc3683546b2c718 /proc.c
parente3b6e1dc700e1135b62aa77b51755ac94de7a2c3 (diff)
downloadruby-9c01b5e3a1c96642d3cb5bf0ef0f8989eb005fdc.tar.gz
ruby-9c01b5e3a1c96642d3cb5bf0ef0f8989eb005fdc.tar.xz
ruby-9c01b5e3a1c96642d3cb5bf0ef0f8989eb005fdc.zip
* proc.c (missing_wrap): reverted.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proc.c b/proc.c
index ef741a7b6..c9f36b989 100644
--- a/proc.c
+++ b/proc.c
@@ -884,12 +884,12 @@ rb_obj_is_method(VALUE m)
}
static VALUE
-missing_wrap(VALUE new_args, VALUE args, int argc, VALUE *argv)
+missing_wrap(VALUE dummy, VALUE args, int argc, VALUE *argv)
{
+ VALUE new_args = rb_ary_new4(argc, argv);
VALUE obj = RARRAY_PTR(args)[0];
VALUE sym = RARRAY_PTR(args)[1];
- if (argc <= 1) new_args = rb_ary_new4(argc, argv);
rb_ary_unshift(new_args, sym);
return rb_funcall2(obj, rb_intern("method_missing"),
check_argc(RARRAY_LEN(new_args)), RARRAY_PTR(new_args));