From 59eadfe83a74ff8da1c8ef81b290ab008bbfbe7b Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 1 Feb 2015 13:10:27 -0500 Subject: [PATCH] (Glide64) guess doing 2*(wxUint16) produces a signed type in C++ rules? This fixes an implicit signed/unsigned conversion warning. --- Source/Glide64/TexBuffer.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/Glide64/TexBuffer.cpp b/Source/Glide64/TexBuffer.cpp index 1d48c5184..ef4582fdc 100644 --- a/Source/Glide64/TexBuffer.cpp +++ b/Source/Glide64/TexBuffer.cpp @@ -705,7 +705,12 @@ int FindTextureBuffer(wxUint32 addr, wxUint16 width) if (rdp.tbuff_tex->crc == 0) { rdp.tbuff_tex->crc = CalcCRC(rdp.tbuff_tex); - bCorrect = width == 1 || rdp.tbuff_tex->width == width || (rdp.tbuff_tex->width > 320 && rdp.tbuff_tex->width == width*2); + bCorrect = + (width == 1) + || (rdp.tbuff_tex->width == width) + || ( (rdp.tbuff_tex->width > 320) + && (rdp.tbuff_tex->width == (wxUint32)width*2) + ); } else bCorrect = rdp.tbuff_tex->crc == CalcCRC(rdp.tbuff_tex);