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/path-precision.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/path-precision.c')
-rw-r--r-- | test/path-precision.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/path-precision.c b/test/path-precision.c index 3261fb43..3a7fb11c 100644 --- a/test/path-precision.c +++ b/test/path-precision.c @@ -57,7 +57,7 @@ draw (cairo_t *cr, int width, int height) cairo_test_status_t result = CAIRO_TEST_SUCCESS; path.status = CAIRO_STATUS_SUCCESS; - path.num_data = sizeof (path_data) / sizeof (path_data[0]); + path.num_data = ARRAY_LENGTH (path_data); path.data = path_data; cairo_new_path (cr); |