summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/file.c b/file.c
index d797a786da..5a79c13fbd 100644
--- a/file.c
+++ b/file.c
@@ -242,7 +242,7 @@ static VALUE
rb_stat_size(self)
VALUE self;
{
- return LONG2NUM(get_stat(self)->st_size);
+ return OFFT2NUM(get_stat(self)->st_size);
}
static VALUE
@@ -730,7 +730,7 @@ test_s(obj, fname)
if (rb_stat(fname, &st) < 0) return Qnil;
if (st.st_size == 0) return Qnil;
- return rb_int2inum(st.st_size);
+ return OFFT2NUM(st.st_size);
}
static VALUE