[PATCH 6/7] d3dx9/tests: Use ARRAY_SIZE in test_D3DXSHEvalConeLight().
Henri Verbeet
hverbeet at codeweavers.com
Fri May 5 06:40:33 CDT 2017
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
---
dlls/d3dx9_36/tests/math.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/d3dx9_36/tests/math.c b/dlls/d3dx9_36/tests/math.c
index c9bf881..7e00df8 100644
--- a/dlls/d3dx9_36/tests/math.c
+++ b/dlls/d3dx9_36/tests/math.c
@@ -2680,7 +2680,7 @@ static void test_D3DXSHEvalConeLight(void)
dir.x = 1.1f; dir.y = 1.2f; dir.z = 2.76f;
- for (l = 0; l < sizeof(test) / sizeof(test[0]); l++)
+ for (l = 0; l < ARRAY_SIZE(test); ++l)
{
for (order = D3DXSH_MINORDER; order <= D3DXSH_MAXORDER; order++)
{
--
2.1.4
More information about the wine-patches
mailing list