(float) atof() -> strtof(), which computes in float instead of computing in

double and casting to float, which is silly
This commit is contained in:
Glenn Maynard
2004-08-10 20:57:59 +00:00
parent 9db234c181
commit aad73b53e9
16 changed files with 47 additions and 47 deletions
+2 -2
View File
@@ -94,7 +94,7 @@ float HHMMSSToSeconds( const CString &sHHMMSS )
float fSeconds = 0;
fSeconds += atoi( arrayBits[0] ) * 60 * 60;
fSeconds += atoi( arrayBits[1] ) * 60;
fSeconds += (float)atof( arrayBits[2] );
fSeconds += strtof( arrayBits[2], NULL );
return fSeconds;
}
@@ -1232,7 +1232,7 @@ bool FileRead(RageFile& f, float& fOut)
CString s;
if (!FileRead(f, s))
return false;
fOut = (float)atof(s);
fOut = strtof( s, NULL );
return true;
}