]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[region] Use correct type for loops
authorRay Strode <rstrode@redhat.com>
Sun, 22 Aug 2010 19:30:27 +0000 (15:30 -0400)
committerRay Strode <rstrode@redhat.com>
Sun, 22 Aug 2010 19:30:27 +0000 (15:30 -0400)
We were using ints when dealing with rectangles which
use longs.

src/libply/ply-region.c

index fd4f9407a7b632ed6e85ae1d89affcaf3fb7f0e1..938be973b2f0a9179a29a825889e69fbe74f77b4 100644 (file)
@@ -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; y<rectangle->height; y++)
     {
       for (x=0; x<rectangle->width; 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;