Fix typos in output.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3671 dfc29bdd-3216-0410-991c-e03cc46cb475
master
hybrid 2011-04-27 21:16:14 +00:00
parent 82beebebf4
commit 4de19ba5b3
1 changed files with 6 additions and 6 deletions

View File

@ -104,12 +104,12 @@ static bool testCalculation_strtol(const char * valueString)
const s32 oldFastValue = old_strtol10(valueString);
const s32 strtolValue = (s32)strtol(valueString, 0, 10);
logTestString("\n String '%s'\n New fast %d\n Old fast %d\n strtol %d\n",
logTestString("\n String '%s'\n New fast %d\n Old fast %d\n strtol %d\n",
valueString, newFastValue, oldFastValue, strtolValue);
bool accurate = (newFastValue == strtolValue) || (oldFastValue != strtolValue);
if(!accurate)
if (!accurate)
logTestString("*** ERROR - wrong calculation in new method ***\n\n");
return accurate;
@ -147,7 +147,7 @@ bool test_fast_atof(void)
accurate &= testCalculation_atof("-0000123456.789");
accurate &= testCalculation_atof("-0.0690462109446526");
if(!accurate)
if (!accurate)
{
logTestString("Calculation is not accurate, so the speed is irrelevant\n");
return false;
@ -257,16 +257,16 @@ bool test_strtol(void)
value = old_strtol10("-3402823466");
const u32 oldstrtol10Time = timer->getRealTime() - then;
logTestString("Speed test\n strtol time = %d\n strtol10 Time = %d\nold strtol10 time = %d\n",
logTestString("Speed test\n strtol time = %d\n strtol10 time = %d\nold strtol10 time = %d\n",
strtolTime, strtol10Time, oldstrtol10Time);
device->closeDevice();
device->run();
device->drop();
if(strtol10Time > (1.2f*strtolTime))
if (strtol10Time > (1.2f*strtolTime))
{
logTestString("The fast method is slower than atof()\n");
logTestString("The fast method is slower than strtol()\n");
return false;
}