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

* error.c (syserr_eqq): Use en.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
knu 2008-05-24 17:47:36 +00:00
parent db21c058e4
commit 93647e9136
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Sun May 25 02:45:49 2008 Akinori MUSHA <knu@iDaemons.org>
* error.c (syserr_eqq): Use en.
Sat May 24 22:32:49 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* object.c (rb_cstr_to_dbl): should clear errno before calling

View file

@ -959,7 +959,7 @@ syserr_eqq(self, exc)
}
else if (self == rb_eSystemCallError) return Qtrue;
num = rb_attr_get(exc, rb_intern("errno"));
num = rb_attr_get(exc, en);
if (NIL_P(num)) {
num = rb_funcall(exc, en, 0, 0);
}