зеркало из https://github.com/github/ruby.git
* 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
This commit is contained in:
Родитель
3e3080ef58
Коммит
138bc4c0c4
|
@ -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
|
||||
|
|
2
bignum.c
2
bignum.c
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче