diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-23 16:05:15 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-23 16:05:15 +0000 |
commit | 6225d547d51cbeee9c10dc927b6b12a4a3e01199 (patch) | |
tree | 8c26748ccd1b820f1470dca316c093afb731f083 /ChangeLog | |
parent | ad6d79e7cbff79fbf8b813a87aa9c4dc397472c8 (diff) | |
download | ruby-6225d547d51cbeee9c10dc927b6b12a4a3e01199.tar.gz |
* bignum.c (BIGUP): Use LSHIFTX and avoid cast to consider the type
of x is bigger than BDIGIT_DBL.
(big2ulong): Use unsigned long to store the result.
(big2ull): Use unsigned LONG_LONG to store the result.
(bigand_int): Use long for num to avoid data loss.
(bigor_int): Ditto.
(bigxor_int): Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41588 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 @@ +Mon Jun 24 00:59:35 2013 Tanaka Akira <akr@fsij.org> + + * bignum.c (BIGUP): Use LSHIFTX and avoid cast to consider the type + of x is bigger than BDIGIT_DBL. + (big2ulong): Use unsigned long to store the result. + (big2ull): Use unsigned LONG_LONG to store the result. + (bigand_int): Use long for num to avoid data loss. + (bigor_int): Ditto. + (bigxor_int): Ditto. + Sun Jun 23 23:05:58 2013 Tanaka Akira <akr@fsij.org> * include/ruby/defines.h (BDIGIT): Define it only if it is not defined |