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
Define for Transformations on Path only, also fixed segfault due to GraphicsBuffer
[ipdf/code.git]
/
src
/
tests
/
realtofloat.cpp
diff --git
a/src/tests/realtofloat.cpp
b/src/tests/realtofloat.cpp
index
32ee20b
..
c475ea9
100644
(file)
--- a/
src/tests/realtofloat.cpp
+++ b/
src/tests/realtofloat.cpp
@@
-12,9
+12,9
@@
int main(int argc, char ** argv)
{
float test = test_min + (test_max-test_min)*((float)(rand() % (int)1e6)/1e6);
Real real(test);
{
float test = test_min + (test_max-test_min)*((float)(rand() % (int)1e6)/1e6);
Real real(test);
- float thiserror = abs(test -
real.value
);
+ float thiserror = abs(test -
Float(real)
);
error += thiserror;
error += thiserror;
- Debug("#%u: |test %.20f - real %.20f| = %.20f [mean %f]", i, test,
real.value
, thiserror, error/(i+1));
+ Debug("#%u: |test %.20f - real %.20f| = %.20f [mean %f]", i, test,
Float(real)
, thiserror, error/(i+1));
}
if (error/test_count > error_thresh)
}
if (error/test_count > error_thresh)
UCC
git Repository :: git.ucc.asn.au