summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--proc.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/proc.c b/proc.c
index 570cbcbc64..ca0158bc58 100644
--- a/proc.c
+++ b/proc.c
@@ -2529,16 +2529,7 @@ mlambda(VALUE method)
static VALUE
bmcall(VALUE args, VALUE method, int argc, VALUE *argv, VALUE passed_proc)
{
- volatile VALUE a;
- VALUE ret;
-
- if (CLASS_OF(args) != rb_cArray) {
- return rb_method_call_with_block(1, &args, method, passed_proc);
- }
- argc = check_argc(RARRAY_LEN(args));
- ret = rb_method_call_with_block(argc, RARRAY_PTR(args), method, passed_proc);
- RB_GC_GUARD(a) = args;
- return ret;
+ return rb_method_call_with_block(argc, argv, method, passed_proc);
}
VALUE