From 72de0b2f34dc0d3c4e9e19a7370b4dcf1b204cf8 Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 1 Feb 2015 12:00:18 -0500 Subject: [PATCH] (Glitch64) most likely intended a signed comparison (fixes 2 warnings) --- Source/Glitch64/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Glitch64/main.cpp b/Source/Glitch64/main.cpp index 865802a04..b9455f53b 100644 --- a/Source/Glitch64/main.cpp +++ b/Source/Glitch64/main.cpp @@ -500,8 +500,8 @@ grClipWindow( FxU32 minx, FxU32 miny, FxU32 maxx, FxU32 maxy ) maxy = th - maxy; miny = th - miny; FxU32 tmp = maxy; maxy = miny; miny = tmp; - if (maxx > width) maxx = width; - if (maxy > height) maxy = height; + if ((FxI32)maxx > width) maxx = width; + if ((FxI32)maxy > height) maxy = height; if (int(minx) < 0) minx = 0; if (int(miny) < 0) miny = 0; if (maxx < minx) maxx = minx;