From ad06a75f2538e334c12756e0648e8e5fda2e81d5 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Wed, 30 Sep 2009 12:11:36 +0200 Subject: [PATCH] fix compiler warning --- platform/sdli.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/platform/sdli.cpp b/platform/sdli.cpp index 7fdf2b8..db032fe 100644 --- a/platform/sdli.cpp +++ b/platform/sdli.cpp @@ -240,27 +240,28 @@ static void drawControls(T * buffer, const int pitch) { unsigned int i = 0; int x, y; + const T black = static_cast(0xFFFFFFFFU); T* temp; for (i = 0; i < sizeof(touchbuttons)/sizeof(TouchButton); i++) { temp = buffer + touchbuttons[i].y * pitch + touchbuttons[i].x; for (x = touchbuttons[i].x; x < touchbuttons[i].x2; x++) { - *temp = -1UL; // Black + *temp = black; // Black temp++; } temp = buffer + touchbuttons[i].y2 * pitch + touchbuttons[i].x; for (x = touchbuttons[i].x; x < touchbuttons[i].x2; x++) { - *temp = -1UL; // Black + *temp = black; // Black temp++; } temp = buffer + touchbuttons[i].y * pitch + touchbuttons[i].x; for (y = touchbuttons[i].y; y < touchbuttons[i].y2; y++) { - *temp = -1UL; // Black + *temp = black; // Black temp+=pitch; } temp = buffer + touchbuttons[i].y * pitch + touchbuttons[i].x2; for (y = touchbuttons[i].y; y < touchbuttons[i].y2; y++) { - *temp = -1UL; // Black + *temp = black; // Black temp+=pitch; } } -- 1.7.9.5