diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-22 04:56:37 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-22 04:56:37 +0000 |
commit | 042fe1ea912903ce34feca4c24e6231135748259 (patch) | |
tree | 1f4cdc53aed36eb2a18e980ed23de046fa90d1db | |
parent | ff0e82ed9db1e8ed1f95b5329bf3fd7bd778f828 (diff) | |
download | ruby-042fe1ea912903ce34feca4c24e6231135748259.tar.gz |
* 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
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | bignum.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -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 @@ -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; } |