From: Sam Moore Date: Fri, 4 Jul 2014 13:20:33 +0000 (+0800) Subject: More moronic bugs X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=5f59e0f1ca7dd40437499e2d35098aa9355ab0bf;p=ipdf%2Fcode.git More moronic bugs So that P/-Q simplifies to -P/Q, -P/-Q simplifies to P/Q, properly this time --- diff --git a/src/rational.h b/src/rational.h index 41cce09..9fe8f1f 100644 --- a/src/rational.h +++ b/src/rational.h @@ -71,7 +71,7 @@ struct Rational { if (Q < 0) { - P = (P < 0) ? -P : P; + P = -P; Q = -Q; } if (P == 0)