From af7125e56b898c734458b9c4cdbdd9cebffd4952 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Thu, 25 May 2017 22:01:38 +0200 Subject: [PATCH] d3dx9/tests: Use ARRAY_SIZE in test_D3DXSHRotateZ(). Signed-off-by: Henri Verbeet Signed-off-by: Matteo Bruni Signed-off-by: Alexandre Julliard --- dlls/d3dx9_36/tests/math.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/d3dx9_36/tests/math.c b/dlls/d3dx9_36/tests/math.c index 6f81de40589..15fb9453e12 100644 --- a/dlls/d3dx9_36/tests/math.c +++ b/dlls/d3dx9_36/tests/math.c @@ -3546,11 +3546,11 @@ static void test_D3DXSHRotateZ(void) else end = 48; - for (j = 0; j < 3; j++) + for (j = 0; j < ARRAY_SIZE(angle); ++j) { for (order = 0; order <= D3DXSH_MAXORDER + 1; order++) { - for (i = 0; i < 49; i++) + for (i = 0; i < ARRAY_SIZE(out); ++i) { out[i] = ( i + 1.0f ) * ( i + 1.0f ); in[i] = i + 1.01f; -- 2.11.4.GIT