mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Compiler Warnings: Mismatch edition. Also fixed some conversion warnings.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2557 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -141,7 +141,7 @@ void Config::Save(int Slot)
|
||||
{
|
||||
/* Save joypad specific settings. Check for "PadMapping[i].ID < SDL_NumJoysticks()" to
|
||||
avoid reading a joyinfo that does't exist */
|
||||
if(PadMapping[i].ID >= joyinfo.size()) continue;
|
||||
if(unsigned int(PadMapping[i].ID) >= joyinfo.size()) continue;
|
||||
|
||||
// Create a new section name after the joypad name
|
||||
SectionName = joyinfo[PadMapping[i].ID].Name;
|
||||
@ -234,7 +234,7 @@ void Config::Load(bool ChangePad, bool ChangeSaveByID)
|
||||
{
|
||||
/* Prevent a crash from illegal access to joyinfo that will only have values for
|
||||
the current amount of connected pads */
|
||||
if(PadMapping[i].ID >= joyinfo.size()) continue;
|
||||
if(unsigned int(PadMapping[i].ID) >= joyinfo.size()) continue;
|
||||
|
||||
// Create a section name
|
||||
SectionName = joyinfo[PadMapping[i].ID].Name;
|
||||
|
Reference in New Issue
Block a user