diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-03-14 06:23:46 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-03-14 06:23:46 +0000 |
commit | 5e853e44c2a63eb82f3928d3b53e75fcde796030 (patch) | |
tree | 1dffc60dc5f5afbec79dc8d0f314c3355f92dab2 /file.c | |
parent | 4f32698827de4d939e811747caf0cc769badbc23 (diff) | |
download | ruby-5e853e44c2a63eb82f3928d3b53e75fcde796030.tar.gz ruby-5e853e44c2a63eb82f3928d3b53e75fcde796030.tar.xz ruby-5e853e44c2a63eb82f3928d3b53e75fcde796030.zip |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@2200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |