diff options
author | Kevin Ryde <user42@zip.com.au> | 2002-09-20 03:03:55 +0200 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2002-09-20 03:03:55 +0200 |
commit | 75361af837fced984aaf2134773c1775b4b92aea (patch) | |
tree | d563654ca10e0375591c40b79d7735e93bb78af3 /gmpxx.h | |
parent | 28bd0d0f4c5ec0a36c3d9aa65b75d4cb8f30093f (diff) | |
download | gmp-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.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; } |