mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-08 22:58:17 +02:00
[region] Use correct type for loops
We were using ints when dealing with rectangles which use longs.
This commit is contained in:
parent
37c82e306c
commit
01adbeeaa5
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue