From 9c7ed5c0da84030467b61bb6a252544c98daada5 Mon Sep 17 00:00:00 2001 From: Walter van Niftrik Date: Tue, 16 Jul 2019 16:11:37 +0200 Subject: ADL: Silence MSVC warnings --- engines/adl/display_a2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engines/adl/display_a2.cpp b/engines/adl/display_a2.cpp index bb0e6d9b03..3a62e33ca6 100644 --- a/engines/adl/display_a2.cpp +++ b/engines/adl/display_a2.cpp @@ -387,7 +387,7 @@ static void renderPixelRowMono(byte *dst, byte *src) { static void copyEvenSurfaceRows(Graphics::Surface &surf) { byte *src = (byte *)surf.getPixels(); - for (uint y = 0; y < surf.h / 2; ++y) { + for (uint y = 0; y < surf.h / 2u; ++y) { byte *dst = src + surf.pitch; for (uint x = 0; x < surf.w; ++x) dst[x] = ALTCOL(src[x]); @@ -463,7 +463,7 @@ void Display_A2::createFont() { byte *buf = (byte *)_font->getPixels(); byte *bufInv = buf + (_font->h / 2) * _font->pitch; - for (uint row = 0; row < _font->h / 2; row += 2) { + for (uint row = 0; row < _font->h / 2u; row += 2) { for (uint col = 0; col < _font->w; ++col) bufInv[col] = (buf[col] ? 0 : 1); -- cgit v1.2.3