From 85c105df532117da94f2a65e339b3fbbce5a19de Mon Sep 17 00:00:00 2001 From: Marco Bodrato Date: Thu, 14 Feb 2013 13:03:57 +0100 Subject: mpz/cmp_si.c: Reorganise branches. --- mpq/cmp_si.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mpq') 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 */ } } } -- cgit v1.2.1