diff options
author | Brian Paul <brianp@vmware.com> | 2016-06-10 12:12:16 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2016-06-14 16:39:42 -0600 |
commit | e4a3f0b28c5c02ee6c7c4a889e2675c26521b60a (patch) | |
tree | 957c258501b18ff68f19838baa1e31777e1178bb /tests/spec/arb_copy_image | |
parent | 14f1ef1f54c7b65600dee5d8e3a56c41d17e1bcb (diff) |
arb_copy_image-formats: use ARRAY_SIZE() macro
Signed-off-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'tests/spec/arb_copy_image')
-rw-r--r-- | tests/spec/arb_copy_image/formats.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/spec/arb_copy_image/formats.c b/tests/spec/arb_copy_image/formats.c index 14271d0a0..381650a9a 100644 --- a/tests/spec/arb_copy_image/formats.c +++ b/tests/spec/arb_copy_image/formats.c @@ -179,7 +179,6 @@ static const struct texture_format formats[] = { #undef FORMAT }; -#define ARRAY_LENGTH(X) (sizeof(X)/sizeof(*(X))) static const struct texture_format * find_format(const char *str) @@ -926,7 +925,7 @@ piglit_display(void) src_format_count = 1; } else { src_format_list = formats; - src_format_count = ARRAY_LENGTH(formats); + src_format_count = ARRAY_SIZE(formats); } if (dst_format_arg) { @@ -934,7 +933,7 @@ piglit_display(void) dst_format_count = 1; } else { dst_format_list = formats; - dst_format_count = ARRAY_LENGTH(formats); + dst_format_count = ARRAY_SIZE(formats); } for (sf = 0; sf < src_format_count; ++sf) { |