diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-13 09:56:52 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-13 09:56:52 +0000 |
commit | 138bc4c0c4904b1370d4d178c74597ad4a3bdfae (patch) | |
tree | 7fcdb16c0d27463d2d09019787a9dbbe82ca2227 | |
parent | 3e3080ef5854ac6a0ae8cc18d2cffd3832afa35b (diff) | |
download | ruby-138bc4c0c4904b1370d4d178c74597ad4a3bdfae.tar.gz |
* bignum.c (integer_unpack_num_bdigits_generic): reorder terms (but not
changed the intention of the expression) because VC++ reports a
warning for it. reported by ko1 via IRC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | bignum.c | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,9 @@ +Thu Jun 13 18:54:11 2013 NAKAMURA Usaku <usa@ruby-lang.org> + + * bignum.c (integer_unpack_num_bdigits_generic): reorder terms (but not + changed the intention of the expression) because VC++ reports a + warning for it. reported by ko1 via IRC. + Thu Jun 13 18:53:14 2013 Tanaka Akira <akr@fsij.org> * test/ruby/test_thread.rb (test_thread_local_security): Don't create @@ -1184,7 +1184,7 @@ integer_unpack_num_bdigits_generic(size_t numwords, size_t wordsize, size_t nail return num_digits2; } else { - size_t tmp1 = - (CHAR_BIT * r3 - r1 * r2); + size_t tmp1 = r1 * r2 - CHAR_BIT * r3; size_t q4 = tmp1 / BITSPERDIG; int r4 = (int)(tmp1 % BITSPERDIG); size_t num_digits2 = num_digits1 - q4; |