git.ucc.asn.au
/
ipdf
/
code.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Turtles all the way down
[ipdf/code.git]
/
src
/
rational.h
diff --git
a/src/rational.h
b/src/rational.h
index
0fa5d99
..
9c97744
100644
(file)
--- a/
src/rational.h
+++ b/
src/rational.h
@@
-186,7
+186,7
@@
struct Rational
double ToDouble() const
{
T num = P, denom = Q;
- while (Tabs(num) > T(1e10))
+ while (Tabs(num) > T(1e10)
|| Tabs(denom) > T(1e10)
)
{
num /= T(16);
denom /= T(16);
UCC
git Repository :: git.ucc.asn.au