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 | 997b69cb6ac9eb97ea644276f1af886a49c1de03 (patch) | |
tree | 1dffc60dc5f5afbec79dc8d0f314c3355f92dab2 /file.c | |
parent | 4f0870f74b530cdb2de4306d55e966a924a9149c (diff) |
* 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
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 |