1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-07 03:13:49 +00:00

Fix compilation with gcc.

This commit is contained in:
Sergey Lipskiy 2014-11-26 19:44:18 +06:00
parent a51c741ce7
commit 19a274f9e5

View File

@ -296,9 +296,9 @@ u32 sizeBytes[4] = {0, 1, 2, 4};
inline u32 Txl2Words(u32 width, u32 size) inline u32 Txl2Words(u32 width, u32 size)
{ {
if (size == 0) if (size == 0)
return max(1, width / 16); return max(1U, width / 16);
else else
return max(1, width*sizeBytes[size] / 8); return max(1U, width*sizeBytes[size] / 8);
} }
inline u32 ReverseDXT(u32 val, u32 lrs, u32 width, u32 size) inline u32 ReverseDXT(u32 val, u32 lrs, u32 width, u32 size)