Arbint class with += and -= operators
[ipdf/code.git] / 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