mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fixed the function signature to rb_rescue2
This commit is contained in:
parent
343b0a281d
commit
fc3bfd521d
1 changed files with 2 additions and 1 deletions
3
io.c
3
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);
|
||||
|
|
Loading…
Reference in a new issue