llvmpipe: Make use of ARRAY_SIZE macro
[mesa.git] / src / gallium / drivers / llvmpipe / lp_test_conv.c
index 8290da4004bf40ebd4d55d3ca4b6f24f3332d67e..a30f35c8149295f54c4db5a1520f25cebfe58d39 100644 (file)
@@ -382,7 +382,7 @@ const struct lp_type conv_types[] = {
 };
 
 
-const unsigned num_types = sizeof(conv_types)/sizeof(conv_types[0]);
+const unsigned num_types = ARRAY_SIZE(conv_types);
 
 
 boolean