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
It compiles... and runs with FPS of zero
[ipdf/code.git]
/
src
/
arbint.cpp
diff --git
a/src/arbint.cpp
b/src/arbint.cpp
index
3a1757b
..
d61dabc
100644
(file)
--- a/
src/arbint.cpp
+++ b/
src/arbint.cpp
@@
-111,7
+111,7
@@
void Arbint::Division(const Arbint & div, Arbint & result, Arbint & remainder) c
//TODO: Optimise?
remainder = *this;
result = 0L;
//TODO: Optimise?
remainder = *this;
result = 0L;
- while ((remainder -= div) >
0L
)
+ while ((remainder -= div) >
Arbint(0L)
)
{
//Debug("Remainder %c%s", remainder.SignChar(), remainder.DigitStr().c_str());
//Debug("Result %c%s + 1", result.SignChar(), result.DigitStr().c_str());
{
//Debug("Remainder %c%s", remainder.SignChar(), remainder.DigitStr().c_str());
//Debug("Result %c%s + 1", result.SignChar(), result.DigitStr().c_str());
UCC
git Repository :: git.ucc.asn.au