Fix signed v. unsigned comparison warnings.
This commit is contained in:
@@ -243,7 +243,7 @@ void ScreenOptionsManageEditSteps::ProcessMenuStart( const InputEventPlus &input
|
||||
{
|
||||
vector<Steps*> v;
|
||||
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(
|
||||
"You have %d Steps edits, the maximum number allowed.\n\n"
|
||||
|
||||
@@ -110,7 +110,7 @@ void ScreenOptionsMemoryCard::ExportOptions( int iRow, const vector<PlayerNumber
|
||||
if( m_iCurrentRow[pn] == iRow )
|
||||
{
|
||||
const vector<UsbStorageDevice> &v = MEMCARDMAN->GetStorageDevices();
|
||||
if( iRow < v.size() )
|
||||
if( iRow < int(v.size()) )
|
||||
{
|
||||
const UsbStorageDevice &dev = v[iRow];
|
||||
MEMCARDMAN->m_sEditorMemoryCardOsMountPoint.Set( dev.sOsMountDir );
|
||||
@@ -123,7 +123,7 @@ void ScreenOptionsMemoryCard::ProcessMenuStart( const InputEventPlus &input )
|
||||
int iCurRow = m_iCurrentRow[GAMESTATE->m_MasterPlayerNumber];
|
||||
|
||||
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 UsbStorageDevice &dev = v[iCurRow];
|
||||
|
||||
Reference in New Issue
Block a user