summaryrefslogtreecommitdiff
path: root/test/path-precision.c
diff options
context:
space:
mode:
authorAndrea Canciani <ranma42@gmail.com>2011-03-16 16:55:50 +0100
committerAndrea Canciani <ranma42@gmail.com>2011-03-17 17:45:57 +0100
commit0ce4face45392cd4a44179062fb4a5715f18bb85 (patch)
tree1d01d8ab7adcf5d8e9609419d7facc4cdc32c76b /test/path-precision.c
parent75fea162d985bea622afa59771fb2d07f5241d1b (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.c2
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);