From: Ray Strode Date: Sun, 22 Aug 2010 19:30:27 +0000 (-0400) Subject: [region] Use correct type for loops X-Git-Tag: 0.8.4~164 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01adbeeaa566a6c4c7c3087b6f2d4f8df5f64361;p=thirdparty%2Fplymouth.git [region] Use correct type for loops We were using ints when dealing with rectangles which use longs. --- diff --git a/src/libply/ply-region.c b/src/libply/ply-region.c index fd4f9407..938be973 100644 --- a/src/libply/ply-region.c +++ b/src/libply/ply-region.c @@ -479,7 +479,7 @@ cover_with_rect(char cover[COVER_SIZE][COVER_SIZE], char value) { /* is value is not zero, the entry will be set to the value, otherwise entry is incremented*/ - int x, y; + unsigned long x, y; for (y=0; yheight; y++) { for (x=0; xwidth; x++) @@ -503,7 +503,8 @@ do_test (void) { ply_rectangle_t rectangle; char cover[COVER_SIZE][COVER_SIZE]; - int x, y, i, width, height; + int i; + unsigned long x, y, width, height; ply_region_t *region; ply_list_node_t *node;