From 1f99d95729fd18bf3dc98cf9eea62df6b8353e40 Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 12 Aug 2002 07:39:12 +0000 Subject: * bignum.c (rb_big_cmp): use dbl2big() for Floats, instead of big2dbl(). * bignum.c (Init_Bignum): rb_big_zero_p() removed. There may be Bignum zero. * eval.c (rb_call0): new argument added for original method name. preserve original method name in frame->orig_func. * eval.c (is_defined): use frame->orig_func, not last_func. * eval.c (rb_eval): ditto. * eval.c (method_call): supply data->oid also to rb_call0(). * object.c (rb_class_allocate_instance): call rb_obj_alloc() when called from alias, thus invoke original "allocate". * eval.c (remove_method): removing allocate from classes should cause NameError. * hash.c (rb_hash_equal): should check default values. * ext/socket/socket.c (s_recvfrom): update RSTRING len. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- file.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'file.c') diff --git a/file.c b/file.c index 33b9cc985b..87f3cc63cc 100644 --- a/file.c +++ b/file.c @@ -214,7 +214,7 @@ rb_stat_rdev(self) #ifdef HAVE_ST_RDEV return ULONG2NUM(get_stat(self)->st_rdev); #else - return INT2FIX(0); + return Qnil; #endif } @@ -226,7 +226,7 @@ rb_stat_rdev_major(self) long rdev = get_stat(self)->st_rdev; return ULONG2NUM(major(rdev)); #else - return INT2FIX(0); + return Qnil; #endif } @@ -238,7 +238,7 @@ rb_stat_rdev_minor(self) long rdev = get_stat(self)->st_rdev; return ULONG2NUM(minor(rdev)); #else - return INT2FIX(0); + return Qnil; #endif } @@ -256,7 +256,7 @@ rb_stat_blksize(self) #ifdef HAVE_ST_BLKSIZE return ULONG2NUM(get_stat(self)->st_blksize); #else - return INT2FIX(0); + return Qnil; #endif } @@ -267,7 +267,7 @@ rb_stat_blocks(self) #ifdef HAVE_ST_BLOCKS return ULONG2NUM(get_stat(self)->st_blocks); #else - return INT2FIX(0); + return Qnil; #endif } -- cgit v1.2.3