Commit 69810d0e authored by cutealien's avatar cutealien

Fix bug in atof test. Thx @cerf for reporting.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5087 dfc29bdd-3216-0410-991c-e03cc46cb475
parent ab0ca53b
...@@ -91,7 +91,7 @@ static bool testCalculation_atof(const char * valueString) ...@@ -91,7 +91,7 @@ static bool testCalculation_atof(const char * valueString)
valueString, newFastValue, oldFastValue, atofValue); valueString, newFastValue, oldFastValue, atofValue);
const f32 diffNew = fabs(newFastValue - atofValue) ; const f32 diffNew = fabs(newFastValue - atofValue) ;
const f32 diffOld = fabs(newFastValue - atofValue) ; const f32 diffOld = fabs(oldFastValue - atofValue) ;
bool accurate = diffNew <= diffOld || equalsByUlp(diffNew, diffOld, 1); bool accurate = diffNew <= diffOld || equalsByUlp(diffNew, diffOld, 1);
if(!accurate) if(!accurate)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment