зеркало из https://github.com/github/ruby.git
* bignum.c (bary_pack): MEMZERO can be used even if nails is not zero.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
ff0e82ed9d
Коммит
042fe1ea91
|
@ -1,3 +1,7 @@
|
|||
Sat Jun 22 13:47:13 2013 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* bignum.c (bary_pack): MEMZERO can be used even if nails is not zero.
|
||||
|
||||
Sat Jun 22 13:43:00 2013 Charlie Somerville <charliesome@ruby-lang.org>
|
||||
|
||||
* ext/etc/etc.c (etc_getpwnam): use PRIsVALUE in format string instead
|
||||
|
|
2
bignum.c
2
bignum.c
|
@ -919,7 +919,7 @@ bary_pack(int sign, BDIGIT *ds, size_t num_bdigits, void *words, size_t numwords
|
|||
sign = 0;
|
||||
}
|
||||
|
||||
if (nails == 0 && sign == 0) {
|
||||
if (sign == 0) {
|
||||
MEMZERO(words, unsigned char, numwords * wordsize);
|
||||
return 0;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче