From 6cd9700dcfca2c101e362fc5da51769c52a2c5ea Mon Sep 17 00:00:00 2001 From: Maarten ter Huurne Date: Sun, 7 Sep 2008 13:17:46 +0000 Subject: [PATCH] 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 --- Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE.cpp b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE.cpp index e0eaa45923..b4606da56b 100644 --- a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE.cpp +++ b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE.cpp @@ -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);