summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bignum.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bignum.c b/bignum.c
index 361a12fb19..47b5f57d49 100644
--- a/bignum.c
+++ b/bignum.c
@@ -6830,6 +6830,7 @@ estimate_initial_sqrt(VALUE *xp, const size_t xn, const BDIGIT *nds, size_t len)
if (rshift >= 0) {
d <<= rshift;
}
+ BDIGITS_ZERO(xds, xn-2);
bdigitdbl2bary(&xds[xn-2], 2, d);
if (!lowbits) return NULL; /* special case, exact result */