summaryrefslogtreecommitdiff
path: root/mpz/invert.c
diff options
context:
space:
mode:
authorMarco Bodrato <bodrato@mail.dm.unipi.it>2012-02-24 10:06:38 +0100
committerMarco Bodrato <bodrato@mail.dm.unipi.it>2012-02-24 10:06:38 +0100
commitcb76c63f7a6d4b16821832c0097ea8d82d2beeb0 (patch)
treed0c582d558e658400e00c1dacdde670e6a8be69e /mpz/invert.c
parentfa798a9710aee89c3a8f96c1740ce7c344ef59d8 (diff)
downloadgmp-cb76c63f7a6d4b16821832c0097ea8d82d2beeb0.tar.gz
Typo in last change. (WARNING: mpz_inverse is not tested!)
Diffstat (limited to 'mpz/invert.c')
-rw-r--r--mpz/invert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpz/invert.c b/mpz/invert.c
index 81f434240..3a32b4c91 100644
--- a/mpz/invert.c
+++ b/mpz/invert.c
@@ -46,7 +46,7 @@ mpz_invert (mpz_ptr inverse, mpz_srcptr x, mpz_srcptr n)
mpz_gcdext (gcd, tmp, (mpz_ptr) 0, x, n);
/* If no inverse existed, return with an indication of that. */
- if (MPZ_EQUAL_1_P (gcd))
+ if (!MPZ_EQUAL_1_P (gcd))
{
TMP_FREE;
return 0;