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/joins.c | |
parent | 75fea162d985bea622afa59771fb2d07f5241d1b (diff) | |
download | cairo-0ce4face45392cd4a44179062fb4a5715f18bb85.tar.gz |
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/joins.c')
-rw-r--r-- | test/joins.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/joins.c b/test/joins.c index 10f9fe7cf..66847dc72 100644 --- a/test/joins.c +++ b/test/joins.c @@ -42,7 +42,7 @@ make_path (cairo_t *cr) }; unsigned int i, j; - for (j = 0; j < sizeof (scales) / sizeof (scales[0]); j++) { + for (j = 0; j < ARRAY_LENGTH (scales); j++) { cairo_save (cr); /* include reflections to flip the orientation of the join */ cairo_scale (cr, scales[j].x, scales[j].y); |