summaryrefslogtreecommitdiff
path: root/mpq
diff options
context:
space:
mode:
authorMarco Bodrato <bodrato@mail.dm.unipi.it>2013-02-14 13:03:57 +0100
committerMarco Bodrato <bodrato@mail.dm.unipi.it>2013-02-14 13:03:57 +0100
commit85c105df532117da94f2a65e339b3fbbce5a19de (patch)
tree8c708428c99fec4cbde871b89a2a732299b788e5 /mpq
parent261bc4c6474baf374eb7001db5433ff34cbde89c (diff)
downloadgmp-85c105df532117da94f2a65e339b3fbbce5a19de.tar.gz
mpz/cmp_si.c: Reorganise branches.
Diffstat (limited to 'mpq')
-rw-r--r--mpq/cmp_si.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mpq/cmp_si.c b/mpq/cmp_si.c
index b9482b1db..a465b1131 100644
--- a/mpq/cmp_si.c
+++ b/mpq/cmp_si.c
@@ -1,6 +1,6 @@
/* _mpq_cmp_si -- compare mpq and long/ulong fraction.
-Copyright 2001 Free Software Foundation, Inc.
+Copyright 2001, 2013 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -46,11 +46,11 @@ _mpq_cmp_si (mpq_srcptr q, long n, unsigned long d)
{
mpq_t qabs;
SIZ(NUM(qabs)) = ABSIZ(NUM(q));
- PTR(NUM(qabs)) = PTR(NUM(q));
+ PTR(NUM(qabs)) = PTR(NUM(q));
SIZ(DEN(qabs)) = SIZ(DEN(q));
- PTR(DEN(qabs)) = PTR(DEN(q));
+ PTR(DEN(qabs)) = PTR(DEN(q));
- return - _mpq_cmp_ui (qabs, -n, d); /* <0 cmp <0 */
+ return - _mpq_cmp_ui (qabs, NEG_CAST (unsigned long, n), d); /* <0 cmp <0 */
}
}
}