ruby-changes:58566
From: Nobuyoshi <ko1@a...>
Date: Tue, 5 Nov 2019 02:06:21 +0900 (JST)
Subject: [ruby-changes:58566] 929a4aa722 (master): Adjust a fucntion signature
https://git.ruby-lang.org/ruby.git/commit/?id=929a4aa722 From 929a4aa722524f4567eed0d8b27d644f912c22f7 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Tue, 5 Nov 2019 02:02:14 +0900 Subject: Adjust a fucntion signature diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index 2d93819..23466d1 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -4277,13 +4277,19 @@ rb_gzreader_external_encoding(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/zlib/zlib.c#L4277 } static VALUE -zlib_gzip_ensure(VALUE arg) +zlib_gzip_end_rescue(VALUE arg) { struct gzfile *gz = (struct gzfile *)arg; - rb_rescue((VALUE(*)())gz->end, arg, NULL, Qnil); + gz->end(gz); return Qnil; } +static VALUE +zlib_gzip_ensure(VALUE arg) +{ + return rb_rescue(zlib_gzip_end_rescue, arg, NULL, Qnil); +} + static void zlib_gzip_end(struct gzfile *gz) { -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/