[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gmp-commit
Subject:    [Gmp-commit] /var/hg/gmp: mpz/millerrabin.c: Typo in a comment (tx tg :-)
From:       mercurial () gmplib ! org (mercurial at gmplib ! org)
Date:       2018-10-18 18:02:21
Message-ID: hg.5ce20b738283.1539885741.4753027791226180404 () shell ! gmplib ! org
[Download RAW message or body]

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
     {

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic