aboutsummaryrefslogtreecommitdiffstats
path: root/bignum.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-22 04:56:37 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-22 04:56:37 +0000
commit042fe1ea912903ce34feca4c24e6231135748259 (patch)
tree1f4cdc53aed36eb2a18e980ed23de046fa90d1db /bignum.c
parentff0e82ed9db1e8ed1f95b5329bf3fd7bd778f828 (diff)
downloadruby-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
Diffstat (limited to 'bignum.c')
-rw-r--r--bignum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bignum.c b/bignum.c
index 7c78a3fbd8..0b2b6ef1ed 100644
--- a/bignum.c
+++ b/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;
}