From 400267368383b01ee97f913b8511340b1b3ae614 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Tue, 23 May 2017 11:04:30 +0200 Subject: [PATCH] d3dx9/tests: Use ARRAY_SIZE in test_D3DXSHMultiply2(). 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 c8000a1d72b..43413680443 100644 --- a/dlls/d3dx9_36/tests/math.c +++ b/dlls/d3dx9_36/tests/math.c @@ -3237,7 +3237,7 @@ static void test_D3DXSHMultiply2(void) 14.0f, 15.0f, 16.0f, 17.0f, 18.0f, 19.0f, }; - for (i = 0; i < 20; i++) + for (i = 0; i < ARRAY_SIZE(a); ++i) { a[i] = 1.0f + i / 100.0f; b[i] = 3.0f - i / 100.0f; @@ -3245,7 +3245,7 @@ static void test_D3DXSHMultiply2(void) } D3DXSHMultiply2(c, a, b); - for (i = 0; i < 20; i++) + for (i = 0; i < ARRAY_SIZE(expected); ++i) { equal = compare_float(c[i], expected[i], 2); ok(equal, "Expected[%u] = %.8e, received = %.8e.\n", i, expected[i], c[i]);