accuracy fix

This commit is contained in:
evghenii
2014-02-11 11:49:03 +01:00
parent f0779f95a3
commit 193bba77b0
20 changed files with 20 additions and 20 deletions

View File

@@ -14,7 +14,7 @@ export uniform int width() { return programCount; }
bool ok(double x, double ref) {
bool r = (abs(x - ref) < 1e-14) || abs((x-ref)/ref) < 1e-14;
bool r = (abs(x - ref) < 1d-14) || abs((x-ref)/ref) < 1d-14;
if (any(r == false))
print("mismatch got %, expected %\n", x, ref);
return r;