diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-11-05 02:02:14 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-11-05 02:05:46 +0900 |
commit | 929a4aa722524f4567eed0d8b27d644f912c22f7 (patch) | |
tree | 31dee125749fd7c14eae04f8af448316cdc1c515 /ext/zlib | |
parent | ec54261b01b1c744c22bacffd1e880f17db9df0b (diff) | |
download | ruby-929a4aa722524f4567eed0d8b27d644f912c22f7.tar.gz |
Adjust a fucntion signature
Diffstat (limited to 'ext/zlib')
-rw-r--r-- | ext/zlib/zlib.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index 2d938199b3..23466d1c94 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -4277,13 +4277,19 @@ rb_gzreader_external_encoding(VALUE self) } 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) { |