summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Bodrato <bodrato@mail.dm.unipi.it>2012-05-18 10:18:36 +0200
committerMarco Bodrato <bodrato@mail.dm.unipi.it>2012-05-18 10:18:36 +0200
commit0bdd972d1230a179f586d1a51e250e442f9057f0 (patch)
tree5d5e4a1a8dfb2319fd5a0cdc1a5dce9c6cfee7cc
parentb5ad88208d88fc0a46c05d947e6c16dd99dbc17c (diff)
downloadgmp-0bdd972d1230a179f586d1a51e250e442f9057f0.tar.gz
mpz/cmpabs_d.c: Remove an unused branch.
-rw-r--r--ChangeLog1
-rw-r--r--mpz/cmpabs_d.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 47cbe8609..9bf395168 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,6 +10,7 @@
* tests/mpq/t-equal.c (check_various): Check different den-size.
* mpn/generic/mullo_n.c: Disable MAYBE_ if WANT_FAT_BINARY.
+ * mpz/cmpabs_d.c: Remove an unused branch.
2012-05-16 Torbjorn Granlund <tege@gmplib.org>
diff --git a/mpz/cmpabs_d.c b/mpz/cmpabs_d.c
index f7aadc262..57a74ba35 100644
--- a/mpz/cmpabs_d.c
+++ b/mpz/cmpabs_d.c
@@ -62,7 +62,7 @@ mpz_cmpabs_d (mpz_srcptr z, double d)
if (d == 0.0)
return (zsize != 0);
if (zsize == 0)
- return (d != 0 ? -1 : 0);
+ return -1; /* d != 0 */
/* 2. Ignore signs. */
zsize = ABS(zsize);