From 19a274f9e5282330c8d06449df5eba1cbec733a5 Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Wed, 26 Nov 2014 19:44:18 +0600 Subject: [PATCH] Fix compilation with gcc. --- Textures.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Textures.cpp b/Textures.cpp index 534f5747..e0bbe046 100644 --- a/Textures.cpp +++ b/Textures.cpp @@ -296,9 +296,9 @@ u32 sizeBytes[4] = {0, 1, 2, 4}; inline u32 Txl2Words(u32 width, u32 size) { if (size == 0) - return max(1, width / 16); + return max(1U, width / 16); 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)