summaryrefslogtreecommitdiff
path: root/mpz/millerrabin.c
diff options
context:
space:
mode:
authorMarco Bodrato <bodrato@mail.dm.unipi.it>2018-10-18 20:01:02 +0200
committerMarco Bodrato <bodrato@mail.dm.unipi.it>2018-10-18 20:01:02 +0200
commit84b30f81656b12bb1ee18a86061bfe87f91323ea (patch)
tree00305c5a76b95359a1dcd8a14c4bee5f23c3771e /mpz/millerrabin.c
parent27c51dedcf374affcfdbea03228b00a955aada5b (diff)
downloadgmp-84b30f81656b12bb1ee18a86061bfe87f91323ea.tar.gz
mpz/millerrabin.c: Typo in a comment (tx tg :-)
Diffstat (limited to 'mpz/millerrabin.c')
-rw-r--r--mpz/millerrabin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpz/millerrabin.c b/mpz/millerrabin.c
index 0387e9b73..13cf7e58a 100644
--- a/mpz/millerrabin.c
+++ b/mpz/millerrabin.c
@@ -115,7 +115,7 @@ mod_eq_m1 (mpz_srcptr x, mpz_srcptr m)
xp = PTR (x);
ASSERT ((mp[0] - 1) == (mp[0] ^ 1)); /* n is odd */
- if ((*xp ^ CNST_LIMB(1) ^ *mp) != CNST_LIMB(0)) /* xp[0] == mp[0] - 1 */
+ if ((*xp ^ CNST_LIMB(1) ^ *mp) != CNST_LIMB(0)) /* xp[0] != mp[0] - 1 */
return 0;
else
{