aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-11 21:36:00 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-11 21:36:00 +0900
commitfc3bfd521d4b2354e18bfe403a3b02bd00251d15 (patch)
tree2a0f976d476a0821251a797a6155325135e41d4d /io.c
parent343b0a281d1dd6e1ab7e6af4c48ad2e6d09a0071 (diff)
downloadruby-fc3bfd521d4b2354e18bfe403a3b02bd00251d15.tar.gz
Fixed the function signature to rb_rescue2
Diffstat (limited to 'io.c')
-rw-r--r--io.c3
1 files changed, 2 insertions, 1 deletions
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);