summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gallium/state_trackers/wgl/stw_ext_pixelformat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/wgl/stw_ext_pixelformat.c b/src/gallium/state_trackers/wgl/stw_ext_pixelformat.c
index 4a64c4607c3..6281d5d241d 100644
--- a/src/gallium/state_trackers/wgl/stw_ext_pixelformat.c
+++ b/src/gallium/state_trackers/wgl/stw_ext_pixelformat.c
@@ -342,7 +342,7 @@ score_pixelformats(struct stw_pixelformat_score *scores,
/* Find out if a given attribute should be considered for score calculation.
*/
- for (i = 0; i < sizeof(attrib_match) / sizeof(attrib_match[0]); i++) {
+ for (i = 0; i < ARRAY_SIZE(attrib_match); i++) {
if (attrib_match[i].attribute == attribute) {
ami = &attrib_match[i];
break;