summaryrefslogtreecommitdiff
path: root/gmpxx.h
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2002-09-20 03:03:55 +0200
committerKevin Ryde <user42@zip.com.au>2002-09-20 03:03:55 +0200
commit75361af837fced984aaf2134773c1775b4b92aea (patch)
treed563654ca10e0375591c40b79d7735e93bb78af3 /gmpxx.h
parent28bd0d0f4c5ec0a36c3d9aa65b75d4cb8f30093f (diff)
downloadgmp-75361af837fced984aaf2134773c1775b4b92aea.tar.gz
2002-09-20 Gerardo Ballabio <gerardo.ballabio@unimib.it>
* gmpxx.h (__gmp_binary_equal, __gmp_binary_not_equal): Fix broken mpq/double functions.
Diffstat (limited to 'gmpxx.h')
-rw-r--r--gmpxx.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/gmpxx.h b/gmpxx.h
index 8bab5c3af..abd71d050 100644
--- a/gmpxx.h
+++ b/gmpxx.h
@@ -928,7 +928,7 @@ struct __gmp_binary_equal
mpq_t temp;
mpq_init(temp);
mpq_set_d(temp, d);
- b = (mpq_equal(q, temp) == 0);
+ b = (mpq_equal(q, temp) != 0);
mpq_clear(temp);
return b;
}
@@ -938,7 +938,7 @@ struct __gmp_binary_equal
mpq_t temp;
mpq_init(temp);
mpq_set_d(temp, d);
- b = (mpq_equal(temp, q) == 0);
+ b = (mpq_equal(temp, q) != 0);
mpq_clear(temp);
return b;
}
@@ -1073,7 +1073,7 @@ struct __gmp_binary_not_equal
mpq_t temp;
mpq_init(temp);
mpq_set_d(temp, d);
- b = (mpq_equal(q, temp) != 0);
+ b = (mpq_equal(q, temp) == 0);
mpq_clear(temp);
return b;
}
@@ -1083,7 +1083,7 @@ struct __gmp_binary_not_equal
mpq_t temp;
mpq_init(temp);
mpq_set_d(temp, d);
- b = (mpq_equal(temp, q) != 0);
+ b = (mpq_equal(temp, q) == 0);
mpq_clear(temp);
return b;
}