diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-05-24 13:39:35 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-05-24 13:39:35 +0000 |
commit | b55ff9989153cbe786967d8a1382846059fd2c54 (patch) | |
tree | 32e62157503596d67bf2c18d5aacd7838c9bac0e /error.c | |
parent | 6eebf142e1cb80659d8395420590947809ff5fb3 (diff) | |
download | ruby-b55ff9989153cbe786967d8a1382846059fd2c54.tar.gz |
* error.c (syserr_initialize): errno is int.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'error.c')
-rw-r--r-- | error.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -949,7 +949,7 @@ syserr_initialize(int argc, VALUE *argv, VALUE self) rb_scan_args(argc, argv, "01", &mesg); error = rb_const_get(klass, rb_intern("Errno")); } - if (!NIL_P(error)) err = strerror(NUM2LONG(error)); + if (!NIL_P(error)) err = strerror(NUM2INT(error)); else err = "unknown error"; if (!NIL_P(mesg)) { VALUE str = mesg; |