ruby-changes:57718
From: Nobuyoshi <ko1@a...>
Date: Wed, 11 Sep 2019 23:39:14 +0900 (JST)
Subject: [ruby-changes:57718] fc3bfd521d (master): Fixed the function signature to rb_rescue2
https://git.ruby-lang.org/ruby.git/commit/?id=fc3bfd521d From fc3bfd521d4b2354e18bfe403a3b02bd00251d15 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Wed, 11 Sep 2019 21:36:00 +0900 Subject: Fixed the function signature to rb_rescue2 diff --git a/io.c b/io.c index 6ae2ee5..2520725 100644 --- a/io.c +++ b/io.c @@ -12212,12 +12212,13 @@ argf_getpartial(int argc, VALUE *argv, VALUE argf, VALUE opts, int nonblock) https://github.com/ruby/ruby/blob/trunk/io.c#L12212 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); -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/