More moronic bugs
authorSam Moore <[email protected]>
Fri, 4 Jul 2014 13:20:33 +0000 (21:20 +0800)
committerSam Moore <[email protected]>
Fri, 4 Jul 2014 13:20:33 +0000 (21:20 +0800)
So that P/-Q simplifies to -P/Q, -P/-Q simplifies to P/Q, properly this time

src/rational.h

index 41cce09..9fe8f1f 100644 (file)
@@ -71,7 +71,7 @@ struct Rational
        {
                if (Q < 0) 
                {
-                       P = (P < 0) ? -P : P;
+                       P = -P;
                        Q = -Q;
                }
                if (P == 0)

UCC git Repository :: git.ucc.asn.au