diff options
author | Andrea Canciani <ranma42@gmail.com> | 2011-03-16 16:55:50 +0100 |
---|---|---|
committer | Andrea Canciani <ranma42@gmail.com> | 2011-03-17 17:45:57 +0100 |
commit | 0ce4face45392cd4a44179062fb4a5715f18bb85 (patch) | |
tree | 1d01d8ab7adcf5d8e9609419d7facc4cdc32c76b /test/clip-disjoint.c | |
parent | 75fea162d985bea622afa59771fb2d07f5241d1b (diff) |
test: Use ARRAY_LENGTH() macro
Some tests hand-code ARRAY_LENGTH(). It is now provided by
cairo-test.h, so it can be reused.
Diffstat (limited to 'test/clip-disjoint.c')
-rw-r--r-- | test/clip-disjoint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/clip-disjoint.c b/test/clip-disjoint.c index 797898ea1..28bb963c2 100644 --- a/test/clip-disjoint.c +++ b/test/clip-disjoint.c @@ -45,7 +45,7 @@ paint_curve (cairo_t *cr) cairo_set_line_width (cr, 2); cairo_move_to (cr, points[0].x, points[0].y); - for (i = 1; i < sizeof (points) / sizeof (points[0]) - 2; i += 3) { + for (i = 1; i < ARRAY_LENGTH (points) - 2; i += 3) { cairo_curve_to (cr, points[i].x, points[i].y, points[i + 1].x, points[i + 1].y, |