diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-27 13:12:27 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-27 13:12:27 +0000 |
commit | 83f1be1bc3a627620b6a7e95afef98a2cb1df5d5 (patch) | |
tree | eceaa8dbf68f7d088fbfba1a90f1788e8c94059c /ChangeLog | |
parent | 7379116878c25b6411ce080268ed8e3a7e885f2f (diff) | |
download | ruby-83f1be1bc3a627620b6a7e95afef98a2cb1df5d5.tar.gz |
* numeric.c (LONG_MIN_MINUS_ONE_IS_LESS_THAN): New macro.
(LLONG_MIN_MINUS_ONE_IS_LESS_THAN): Ditto.
(rb_num2long): Use LONG_MIN_MINUS_ONE_IS_LESS_THAN.
(rb_num2ulong): Ditto.
(rb_num2ll): Use LLONG_MIN_MINUS_ONE_IS_LESS_THAN.
(rb_num2ull): Ditto.
* test/-ext-/num2int/test_num2int.rb (asert_num2i_success): Test the
value converted into a Float if Float can represent the value
exactly.
(asert_num2i_error): Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -1,3 +1,17 @@ +Wed Mar 27 22:09:14 2013 Tanaka Akira <akr@fsij.org> + + * numeric.c (LONG_MIN_MINUS_ONE_IS_LESS_THAN): New macro. + (LLONG_MIN_MINUS_ONE_IS_LESS_THAN): Ditto. + (rb_num2long): Use LONG_MIN_MINUS_ONE_IS_LESS_THAN. + (rb_num2ulong): Ditto. + (rb_num2ll): Use LLONG_MIN_MINUS_ONE_IS_LESS_THAN. + (rb_num2ull): Ditto. + + * test/-ext-/num2int/test_num2int.rb (asert_num2i_success): Test the + value converted into a Float if Float can represent the value + exactly. + (asert_num2i_error): Ditto. + Wed Mar 27 20:59:47 2013 Tanaka Akira <akr@fsij.org> * test/-ext-/num2int/test_num2int.rb (asert_num2i_success): New |