Fix signed v. unsigned comparison warnings.

This commit is contained in:
Steve Checkoway
2005-12-12 09:59:17 +00:00
parent 5e68c985a6
commit d833390f9d
2 changed files with 3 additions and 3 deletions
@@ -243,7 +243,7 @@ void ScreenOptionsManageEditSteps::ProcessMenuStart( const InputEventPlus &input
{ {
vector<Steps*> v; vector<Steps*> v;
SONGMAN->GetStepsLoadedFromProfile( v, ProfileSlot_Machine ); SONGMAN->GetStepsLoadedFromProfile( v, ProfileSlot_Machine );
if( v.size() >= MAX_EDIT_STEPS_PER_PROFILE ) if( v.size() >= size_t(MAX_EDIT_STEPS_PER_PROFILE) )
{ {
CString s = ssprintf( CString s = ssprintf(
"You have %d Steps edits, the maximum number allowed.\n\n" "You have %d Steps edits, the maximum number allowed.\n\n"
+2 -2
View File
@@ -110,7 +110,7 @@ void ScreenOptionsMemoryCard::ExportOptions( int iRow, const vector<PlayerNumber
if( m_iCurrentRow[pn] == iRow ) if( m_iCurrentRow[pn] == iRow )
{ {
const vector<UsbStorageDevice> &v = MEMCARDMAN->GetStorageDevices(); const vector<UsbStorageDevice> &v = MEMCARDMAN->GetStorageDevices();
if( iRow < v.size() ) if( iRow < int(v.size()) )
{ {
const UsbStorageDevice &dev = v[iRow]; const UsbStorageDevice &dev = v[iRow];
MEMCARDMAN->m_sEditorMemoryCardOsMountPoint.Set( dev.sOsMountDir ); MEMCARDMAN->m_sEditorMemoryCardOsMountPoint.Set( dev.sOsMountDir );
@@ -123,7 +123,7 @@ void ScreenOptionsMemoryCard::ProcessMenuStart( const InputEventPlus &input )
int iCurRow = m_iCurrentRow[GAMESTATE->m_MasterPlayerNumber]; int iCurRow = m_iCurrentRow[GAMESTATE->m_MasterPlayerNumber];
const vector<UsbStorageDevice> &v = MEMCARDMAN->GetStorageDevices(); const vector<UsbStorageDevice> &v = MEMCARDMAN->GetStorageDevices();
if( iCurRow < v.size() ) // a card if( iCurRow < int(v.size()) ) // a card
{ {
const vector<UsbStorageDevice> v = MEMCARDMAN->GetStorageDevices(); const vector<UsbStorageDevice> v = MEMCARDMAN->GetStorageDevices();
const UsbStorageDevice &dev = v[iCurRow]; const UsbStorageDevice &dev = v[iCurRow];