summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-01-21 07:43:41 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-01-21 07:43:41 +0000
commit4c2c8f099c305476c0361937c12f59fd5bfbc788 (patch)
treeaa9e156cbc680ee49ba0fa1bf9bd15d41676e7c9 /error.c
parent551de15b61b773c3460e6b574df4ef4f7dc09807 (diff)
* eval.c (ruby_stop): should not trace error handler.
* io.c (io_write): should not raise exception on O_NONBLOCK io. * dir.c (dir_set_pos): seek should return dir, pos= should not. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@2008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'error.c')
-rw-r--r--error.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/error.c b/error.c
index a86fb6baea..ea1a7ab411 100644
--- a/error.c
+++ b/error.c
@@ -482,7 +482,7 @@ set_syserr(i, name)
int ix, offset;
#endif
VALUE error = rb_define_class_under(rb_mErrno, name, rb_eSystemCallError);
- rb_define_const(error, "Errno", INT2FIX(i));
+ rb_define_const(error, "Errno", INT2NUM(i));
#ifdef __BEOS__
if (i == B_ERROR) {
syserr_error = error;
@@ -690,7 +690,7 @@ rb_sys_fail(mesg)
}
#endif
ee = rb_exc_new2(ee, buf);
- rb_iv_set(ee, "errno", INT2FIX(n));
+ rb_iv_set(ee, "errno", INT2NUM(n));
rb_exc_raise(ee);
}