From 01adbeeaa566a6c4c7c3087b6f2d4f8df5f64361 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Sun, 22 Aug 2010 15:30:27 -0400 Subject: [PATCH] [region] Use correct type for loops We were using ints when dealing with rectangles which use longs. --- src/libply/ply-region.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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;