1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Adjust a fucntion signature

This commit is contained in:
Nobuyoshi Nakada 2019-11-05 02:02:14 +09:00
parent ec54261b01
commit 929a4aa722
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -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)
{