diff --git a/stepmania/src/NotesLoaderDWI.cpp b/stepmania/src/NotesLoaderDWI.cpp index cbbbeb26ff..8a83493928 100644 --- a/stepmania/src/NotesLoaderDWI.cpp +++ b/stepmania/src/NotesLoaderDWI.cpp @@ -102,7 +102,7 @@ void DWILoader::DWIcharToNoteCol( char c, GameController i, int &col1Out, int &c * it's most likely a jump. Search for a 0 before the next >: */ bool DWILoader::Is192( const CString &sStepData, size_t pos ) { - while( pos < (int) sStepData.size() ) + while( pos < sStepData.size() ) { if( sStepData[pos] == '>' ) return false; diff --git a/stepmania/src/NotesLoaderKSF.cpp b/stepmania/src/NotesLoaderKSF.cpp index 3238aaf919..7d08d41404 100644 --- a/stepmania/src/NotesLoaderKSF.cpp +++ b/stepmania/src/NotesLoaderKSF.cpp @@ -127,7 +127,7 @@ bool KSFLoader::LoadFromKSFFile( const CString &sPath, Steps &out, const Song &s out.m_StepsType = STEPS_TYPE_PUMP_SINGLE; /* Check for "halfdouble" before "double". */ - if( sFName.find("halfdouble") != -1 || sFName.find("h_double") != string::npos ) + if( sFName.find("halfdouble") != string::npos || sFName.find("h_double") != string::npos ) out.m_StepsType = STEPS_TYPE_PUMP_HALFDOUBLE; else if( sFName.find("double") != string::npos ) out.m_StepsType = STEPS_TYPE_PUMP_DOUBLE;