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/fallback-resolution.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/fallback-resolution.c')
-rw-r--r-- | test/fallback-resolution.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/fallback-resolution.c b/test/fallback-resolution.c index 1d05973f7..5447a56d8 100644 --- a/test/fallback-resolution.c +++ b/test/fallback-resolution.c @@ -346,7 +346,7 @@ preamble (cairo_test_context_t *ctx) int n, num_ppi; const char *path = _cairo_test_mkdir (CAIRO_TEST_OUTPUT_DIR) ? CAIRO_TEST_OUTPUT_DIR : "."; - num_ppi = sizeof (ppi) / sizeof (ppi[0]); + num_ppi = ARRAY_LENGTH (ppi); #if GENERATE_REFERENCE for (n = 0; n < num_ppi; n++) { |