aboutsummaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/eval.c b/eval.c
index 582450941f..12ab5e992a 100644
--- a/eval.c
+++ b/eval.c
@@ -1140,8 +1140,7 @@ rb_yield_0(VALUE val, VALUE self, VALUE klass /* OK */ , int flags,
int avalue)
{
if (avalue) {
- return th_invoke_yield(GET_THREAD(),
- RARRAY_LEN(val), RARRAY_PTR(val));
+ return th_yield(GET_THREAD(), RARRAY_LEN(val), RARRAY_PTR(val));
}
else {
int argc = (val == Qundef) ? 0 : 1;
@@ -1153,7 +1152,7 @@ rb_yield_0(VALUE val, VALUE self, VALUE klass /* OK */ , int flags,
argv = RARRAY_PTR(argv[0]);
}
*/
- return th_invoke_yield(GET_THREAD(), argc, argv);
+ return th_yield(GET_THREAD(), argc, argv);
}
}