From c54212b43b363401fedb22502653386c8273f478 Mon Sep 17 00:00:00 2001 From: wbhart Date: Mon, 7 Dec 2009 22:08:37 +0000 Subject: [PATCH] Corrected one of the constants I maladjusted. --- mpz/likely_prime_p.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mpz/likely_prime_p.c b/mpz/likely_prime_p.c index d73438c3..fdbaf3b5 100644 --- a/mpz/likely_prime_p.c +++ b/mpz/likely_prime_p.c @@ -647,7 +647,7 @@ n_pair_t lchain2_preinv(mp_limb_t m, mp_limb_t a, mp_limb_t n, mp_limb_t ninv) old.y = a; length = BIT_COUNT(m); - power = (CNST_LIMB(2)<<(length - 1)); + power = (CNST_LIMB(1)<<(length - 1)); for (i = 0; i < length; i++) {