From 5c7c2d9951f2512ca10ea38fecc48d8ac67502e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= Date: Mon, 26 Aug 2019 14:51:00 +0900 Subject: rb_rescue / rb_rescue2 now free from ANYARGS After 5e86b005c0f2ef30df2f9906c7e2f3abefe286a2, I now think ANYARGS is dangerous and should be extinct. This commit deletes ANYARGS from rb_rescue / rb_rescue2, which revealed many arity / type mismatches. --- enum.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'enum.c') diff --git a/enum.c b/enum.c index 665c97ffbe..829d67a046 100644 --- a/enum.c +++ b/enum.c @@ -2723,14 +2723,16 @@ zip_ary(RB_BLOCK_CALL_FUNC_ARGLIST(val, memoval)) } static VALUE -call_next(VALUE *v) +call_next(VALUE w) { + VALUE *v = (VALUE *)w; return v[0] = rb_funcallv(v[1], id_next, 0, 0); } static VALUE -call_stop(VALUE *v) +call_stop(VALUE w, VALUE _) { + VALUE *v = (VALUE *)w; return v[0] = Qundef; } -- cgit v1.2.3