From fc3bfd521d4b2354e18bfe403a3b02bd00251d15 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 11 Sep 2019 21:36:00 +0900 Subject: [PATCH] Fixed the function signature to rb_rescue2 --- io.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/io.c b/io.c index 6ae2ee5ff9..2520725814 100644 --- a/io.c +++ b/io.c @@ -12212,12 +12212,13 @@ argf_getpartial(int argc, VALUE *argv, VALUE argf, VALUE opts, int nonblock) rb_eof_error(); } if (ARGF_GENERIC_INPUT_P()) { + VALUE (*const rescue_does_nothing)(VALUE, VALUE) = 0; struct argf_call_arg arg; arg.argc = argc; arg.argv = argv; arg.argf = argf; tmp = rb_rescue2(argf_forward_call, (VALUE)&arg, - RUBY_METHOD_FUNC(0), Qnil, rb_eEOFError, (VALUE)0); + rescue_does_nothing, Qnil, rb_eEOFError, (VALUE)0); } else { tmp = io_getpartial(argc, argv, ARGF.current_file, no_exception, nonblock);