(Glide64) guess doing 2*(wxUint16) produces a signed type in C++ rules?

This fixes an implicit signed/unsigned conversion warning.
This commit is contained in:
unknown 2015-02-01 13:10:27 -05:00
parent 3d66a3540d
commit 59eadfe83a
1 changed files with 6 additions and 1 deletions

View File

@ -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);