Explicitly convert negative numbers to u32 to avoid warnings.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@456 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
4952852799
commit
6cd9700dcf
|
@ -151,7 +151,7 @@ IWII_IPC_HLE_Device* CreateDevice(u32 _DeviceID, const std::string& _rDeviceName
|
|||
else
|
||||
{
|
||||
PanicAlert("Unknown device: %s", _rDeviceName.c_str());
|
||||
pDevice = new CWII_IPC_HLE_Device_Error(-1, _rDeviceName);
|
||||
pDevice = new CWII_IPC_HLE_Device_Error(u32(-1), _rDeviceName);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -234,7 +234,7 @@ void ExecuteCommand(u32 _Address)
|
|||
#endif
|
||||
|
||||
// we have already opened this device
|
||||
Memory::Write_U32(-6, _Address + 4);
|
||||
Memory::Write_U32(u32(-6), _Address + 4);
|
||||
GenerateReply = true;
|
||||
|
||||
LOG(WII_IPC_HLE, "IOP: ReOpen (Device=%s, Mode=%i)", pDevice->GetDeviceName().c_str(), Mode);
|
||||
|
|
Loading…
Reference in New Issue