fix warnings

This commit is contained in:
Glenn Maynard
2003-10-20 06:28:19 +00:00
parent 751f59a72b
commit 53155bb619
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -343,7 +343,7 @@ bool FileRead( ifstream& f, float& fOut )
CString s;
if( !FileRead( f, s ) )
return false;
fOut = atof( s );
fOut = (float) atof( s );
return true;
}
void FileWrite( ofstream& f, const CString& sWrite )
@@ -393,7 +393,7 @@ void SongManager::ReadStepsMemCardDataFromFile( CString fn, int mc )
if( !FileRead(f, iNumNotes) )
WARN_AND_RETURN;
for( unsigned n=0; n<iNumNotes; n++ )
for( int n=0; n<iNumNotes; n++ )
{
StepsType nt;
if( !FileRead(f, (int&)nt) )
@@ -439,7 +439,7 @@ void SongManager::ReadStepsMemCardDataFromFile( CString fn, int mc )
WARN_AND_RETURN;
CLAMP( grade, (Grade)0, (Grade)(NUM_GRADES-1) );
float iScore;
int iScore;
if( !FileRead(f, iScore) )
WARN_AND_RETURN;