ruby-changes:29225
From: usa <ko1@a...>
Date: Thu, 13 Jun 2013 18:57:02 +0900 (JST)
Subject: [ruby-changes:29225] usa:r41277 (trunk): * bignum.c (integer_unpack_num_bdigits_generic): reorder terms (but not
usa 2013-06-13 18:56:52 +0900 (Thu, 13 Jun 2013) New Revision: 41277 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41277 Log: * 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. Modified files: trunk/ChangeLog trunk/bignum.c Index: ChangeLog =================================================================== --- ChangeLog (revision 41276) +++ ChangeLog (revision 41277) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu Jun 13 18:54:11 2013 NAKAMURA Usaku <usa@r...> + + * 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@f...> * test/ruby/test_thread.rb (test_thread_local_security): Don't create Index: bignum.c =================================================================== --- bignum.c (revision 41276) +++ bignum.c (revision 41277) @@ -1184,7 +1184,7 @@ integer_unpack_num_bdigits_generic(size_ https://github.com/ruby/ruby/blob/trunk/bignum.c#L1184 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; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/