Fixed signed/unsigned mismatch in comparisons

No more 'comparison of integers of different signs' warnings reported by GCC/Clang
This commit is contained in:
alexey.lysiuk 2017-01-05 15:45:15 +02:00 committed by Christoph Oelckers
commit 9ed2da176e
12 changed files with 22 additions and 22 deletions

View file

@ -285,7 +285,7 @@ const FHardwareTexture *FGLTexture::Bind(int texunit, int clampmode, int transla
if (translation <= 0) translation = -translation;
else
{
alphatrans = (gl.legacyMode && translation == TRANSLATION(TRANSLATION_Standard, 8));
alphatrans = (gl.legacyMode && DWORD(translation) == TRANSLATION(TRANSLATION_Standard, 8));
translation = GLTranslationPalette::GetInternalTranslation(translation);
}