mirror of
https://github.com/ruby/ruby.git
synced 2025-09-20 19:14:00 +02:00
Fix to compile on yarv, ruby_errinfo -> rb_errinfo()
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e7a993656c
commit
0fe6b888c9
2 changed files with 6 additions and 1 deletions
|
@ -1759,7 +1759,7 @@ gzfile_read_raw_rescue(VALUE arg)
|
|||
{
|
||||
struct gzfile *gz = (struct gzfile*)arg;
|
||||
VALUE str = Qnil;
|
||||
if (rb_obj_is_kind_of(ruby_errinfo(), rb_eNoMethodError)) {
|
||||
if (rb_obj_is_kind_of(rb_errinfo(), rb_eNoMethodError)) {
|
||||
str = rb_funcall(gz->io, id_read, 1, INT2FIX(GZFILE_READ_SIZE));
|
||||
if (!NIL_P(str)) {
|
||||
Check_Type(str, T_STRING);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue