diff options
author | notaz | 2015-02-04 00:31:01 +0200 |
---|---|---|
committer | notaz | 2015-02-04 00:31:01 +0200 |
commit | 4144e9abc1fb8420e08e0a5ef48a9ceba7f26661 (patch) | |
tree | 3ee7853d116d459072c3f8dfea0d4de2ebce2d3e /plugins/gpu_unai/gpulib_if.cpp | |
parent | 92a5fe88a86f0a25c3bbc74f80b67b16e18608e7 (diff) | |
download | pcsx_rearmed-4144e9abc1fb8420e08e0a5ef48a9ceba7f26661.tar.gz pcsx_rearmed-4144e9abc1fb8420e08e0a5ef48a9ceba7f26661.tar.bz2 pcsx_rearmed-4144e9abc1fb8420e08e0a5ef48a9ceba7f26661.zip |
gpu_unai: fix some 64bit issues
Diffstat (limited to 'plugins/gpu_unai/gpulib_if.cpp')
-rw-r--r-- | plugins/gpu_unai/gpulib_if.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/gpu_unai/gpulib_if.cpp b/plugins/gpu_unai/gpulib_if.cpp index 0d506bc..646b0f2 100644 --- a/plugins/gpu_unai/gpulib_if.cpp +++ b/plugins/gpu_unai/gpulib_if.cpp @@ -490,8 +490,8 @@ int do_cmd_list(unsigned int *list, int list_len, int *last_cmd) } case 0xE5: { const u32 temp = PacketBuffer.U4[0]; - DrawingOffset[0] = ((long)temp<<(32-11))>>(32-11); - DrawingOffset[1] = ((long)temp<<(32-22))>>(32-11); + DrawingOffset[0] = ((s32)temp<<(32-11))>>(32-11); + DrawingOffset[1] = ((s32)temp<<(32-22))>>(32-11); gpu.ex_regs[5] = temp; break; } |