From 19a2a59c3cf9c9baf8d0366ab59d8a0ec2d0d7e4 Mon Sep 17 00:00:00 2001 From: richiesams Date: Sun, 11 Aug 2013 16:39:21 -0500 Subject: ZVISION: Fix unsigned/signed mismatch --- engines/zvision/video.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines') diff --git a/engines/zvision/video.cpp b/engines/zvision/video.cpp index b3e32b7703..ca95a7e5f3 100644 --- a/engines/zvision/video.cpp +++ b/engines/zvision/video.cpp @@ -47,7 +47,7 @@ void scaleBuffer(const byte *src, byte *dst, uint32 srcWidth, uint32 srcHeight, for (uint32 x = 0; x < srcWidth; x++) { const byte color = *srcPtr++; - for (int i = 0; i < scaleAmount; i++) { + for (uint i = 0; i < scaleAmount; i++) { dst[i] = color; dst[pitch + i] = color; } @@ -61,11 +61,11 @@ void scaleBuffer(const byte *src, byte *dst, uint32 srcWidth, uint32 srcHeight, const byte color = *srcPtr++; const byte color2 = *srcPtr++; - for (int i = 0; i < scaleAmount; i++) { dst[i] = color; dst[i + 1] = color2; dst[pitch + i] = color; dst[pitch + i + 1] = color2; + for (uint i = 0; i < scaleAmount; i++) { } dst += 2 * scaleAmount; } -- cgit v1.2.3