git.ucc.asn.au
/
ipdf
/
code.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ac558f
)
More moronic bugs
author
Sam Moore
<
[email protected]
>
Fri, 4 Jul 2014 13:20:33 +0000
(21:20 +0800)
committer
Sam 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
patch
|
blob
|
history
diff --git
a/src/rational.h
b/src/rational.h
index
41cce09
..
9fe8f1f
100644
(file)
--- 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)
UCC
git Repository :: git.ucc.asn.au