From 997b69cb6ac9eb97ea644276f1af886a49c1de03 Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 14 Mar 2002 06:23:46 +0000 Subject: * re.c (rb_reg_match): should clear $~ if operand is nil. * re.c (rb_reg_match2): ditto. * configure: merge Jonathan Baker's large file support patch [ruby-talk:35316], with read_all patch in [ruby-talk:35470]. * eval.c (rb_f_abort): optional message argument that be printed on termination. [new] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'file.c') 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 -- cgit v1.2.3