mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-12 14:46:49 +01:00
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
|
else
|
||||||
{
|
{
|
||||||
PanicAlert("Unknown device: %s", _rDeviceName.c_str());
|
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
|
else
|
||||||
@ -234,7 +234,7 @@ void ExecuteCommand(u32 _Address)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// we have already opened this device
|
// we have already opened this device
|
||||||
Memory::Write_U32(-6, _Address + 4);
|
Memory::Write_U32(u32(-6), _Address + 4);
|
||||||
GenerateReply = true;
|
GenerateReply = true;
|
||||||
|
|
||||||
LOG(WII_IPC_HLE, "IOP: ReOpen (Device=%s, Mode=%i)", pDevice->GetDeviceName().c_str(), Mode);
|
LOG(WII_IPC_HLE, "IOP: ReOpen (Device=%s, Mode=%i)", pDevice->GetDeviceName().c_str(), Mode);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user