summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
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 ca865d4d42..864e8df6ad 100644
--- a/proc.c
+++ b/proc.c
@@ -490,7 +490,7 @@ proc_call(int argc, VALUE *argv, VALUE procval)
rb_block_t *blockptr = 0;
GetProcPtr(procval, proc);
- if (BUILTIN_TYPE(proc->block.iseq) == T_NODE ||
+ if (BUILTIN_TYPE(proc->block.iseq) != T_NODE &&
proc->block.iseq->arg_block != -1) {
if (rb_block_given_p()) {
@@ -1613,7 +1613,7 @@ curry(VALUE dummy, VALUE args, int argc, VALUE *argv)
arity = make_curry_proc(proc, passed, arity);
return arity;
}
- arity = proc_call(RARRAY_LEN(passed), RARRAY_PTR(passed), proc);
+ arity = rb_proc_call(proc, passed);
return arity;
}