From cf39749dcb299541549195b6d172263a3115714c Mon Sep 17 00:00:00 2001 From: David Turner Date: Wed, 2 Feb 2011 22:26:05 +0000 Subject: IPHONE: Fix Unsigned to Signed Comparison Compiler Warning. svn-id: r55743 --- backends/platform/iphone/osys_video.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backends') diff --git a/backends/platform/iphone/osys_video.cpp b/backends/platform/iphone/osys_video.cpp index 88368a0eec..ee27e4d87c 100644 --- a/backends/platform/iphone/osys_video.cpp +++ b/backends/platform/iphone/osys_video.cpp @@ -472,8 +472,8 @@ void OSystem_IPHONE::setMouseCursor(const byte *buf, uint w, uint h, int hotspot int16* mouseBuf = (int16*)malloc(bufferSize); memset(mouseBuf, 0, bufferSize); - for (int x = 0; x < w; ++x) { - for (int y = 0; y < h; ++y) { + for (uint x = 0; x < w; ++x) { + for (uint y = 0; y < h; ++y) { byte color = buf[y * w + x]; if (color != keycolor) mouseBuf[y * texWidth + x] = _palette[color] | 0x1; -- cgit v1.2.3