Henri Verbeet : d3dx9/tests: Use ARRAY_SIZE in test_D3DXSHDot().

Alexandre Julliard julliard at winehq.org
Mon May 8 17:21:22 CDT 2017


Module: wine
Branch: master
Commit: 9ccbb303a111e4f1ac34c58823f12a9d3f844446
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9ccbb303a111e4f1ac34c58823f12a9d3f844446

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Fri May  5 13:40:32 2017 +0200

d3dx9/tests: Use ARRAY_SIZE in test_D3DXSHDot().

Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 2cf22a4..c9bf881 100644
--- a/dlls/d3dx9_36/tests/math.c
+++ b/dlls/d3dx9_36/tests/math.c
@@ -2591,7 +2591,7 @@ static void test_D3DXSHDot(void)
 
     static const float expected[] = {0.5f, 0.5f, 25.0f, 262.5f, 1428.0f, 5362.5f, 15873.0f, 39812.5f};
 
-    for (i = 0; i < 49; i++)
+    for (i = 0; i < ARRAY_SIZE(a); ++i)
     {
         a[i] = i + 1.0f;
         b[i] = i + 0.5f;




More information about the wine-cvs mailing list