diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-07-01 20:39:32 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-07-01 20:39:32 +0000 |
commit | 26202fba935372c269d690b4273b96e61ef58b7c (patch) | |
tree | 1524fef79b8218f1006479384b4e0ba81ad2e456 /ChangeLog | |
parent | 5d229db887ec42178ef90c20c014d5073c49cc6f (diff) | |
download | ruby-26202fba935372c269d690b4273b96e61ef58b7c.tar.gz |
* numeric.c (rb_num2long): accept LONG_MAX < x < LONG_MAX+1 and
LONG_MIN-1 < x < LONG_MIN as well because they are converted
into the valid range of long by truncation.
(rb_num2ulong): accept ULONG_MAX < x < ULONG_MAX+1 and
LONG_MIN-1 < x < LONG_MIN as well.
(rb_num2ll): accept LLONG_MAX < x < LLONG_MAX+1 and
LLONG_MIN-1 < x < LLONG_MIN.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1,3 +1,13 @@ +Fri Jul 2 05:31:51 2010 Tanaka Akira <akr@fsij.org> + + * numeric.c (rb_num2long): accept LONG_MAX < x < LONG_MAX+1 and + LONG_MIN-1 < x < LONG_MIN as well because they are converted + into the valid range of long by truncation. + (rb_num2ulong): accept ULONG_MAX < x < ULONG_MAX+1 and + LONG_MIN-1 < x < LONG_MIN as well. + (rb_num2ll): accept LLONG_MAX < x < LLONG_MAX+1 and + LLONG_MIN-1 < x < LLONG_MIN. + Thu Jul 1 23:10:25 2010 James Edward Gray II <jeg2@ruby-lang.org> * lib/csv.rb: Improving documentation. |