[Gmp-commit] /var/hg/gmp: mpz/millerrabin.c: Typo in a comment (tx tg :-)

mercurial at gmplib.org mercurial at gmplib.org
Thu Oct 18 18:02:21 UTC 2018


details:   /var/hg/gmp/rev/5ce20b738283
changeset: 17657:5ce20b738283
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Thu Oct 18 20:01:02 2018 +0200
description:
mpz/millerrabin.c: Typo in a comment (tx tg :-)

diffstat:

 mpz/millerrabin.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 7673e5cb31ad -r 5ce20b738283 mpz/millerrabin.c
--- a/mpz/millerrabin.c	Thu Jul 19 08:18:34 2018 +0200
+++ b/mpz/millerrabin.c	Thu Oct 18 20:01:02 2018 +0200
@@ -115,7 +115,7 @@
   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
     {


More information about the gmp-commit mailing list