diff options
Diffstat (limited to 'lib/pixman/test/gradient-crash-test.c')
-rw-r--r-- | lib/pixman/test/gradient-crash-test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pixman/test/gradient-crash-test.c b/lib/pixman/test/gradient-crash-test.c index c85712d69..73e5bbcd5 100644 --- a/lib/pixman/test/gradient-crash-test.c +++ b/lib/pixman/test/gradient-crash-test.c @@ -106,17 +106,17 @@ main (int argc, char **argv) if (i == 0) { stops = onestop; - num_stops = sizeof(onestop) / sizeof(onestop[0]); + num_stops = ARRAY_LENGTH (onestop); } else if (i == 1) { stops = subsetstops; - num_stops = sizeof(subsetstops) / sizeof(subsetstops[0]); + num_stops = ARRAY_LENGTH (subsetstops); } else { stops = stops01; - num_stops = sizeof(stops01) / sizeof(stops01[0]); + num_stops = ARRAY_LENGTH (stops01); } for (j = 0; j < 3; ++j) |