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

Alexandre Julliard julliard at winehq.org
Thu Jun 1 18:49:36 CDT 2017


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Thu May 25 22:01:39 2017 +0200

d3dx9/tests: Use ARRAY_SIZE in test_D3DXSHScale().

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 | 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 15fb945..8882907 100644
--- a/dlls/d3dx9_36/tests/math.c
+++ b/dlls/d3dx9_36/tests/math.c
@@ -3586,7 +3586,7 @@ static void test_D3DXSHScale(void)
     unsigned int i, order;
     BOOL equal;
 
-    for (i = 0; i < 49; i++)
+    for (i = 0; i < ARRAY_SIZE(a); ++i)
     {
         a[i] = i;
         b[i] = i;
@@ -3597,7 +3597,7 @@ static void test_D3DXSHScale(void)
         received_array = D3DXSHScale(b, order, a, 5.0f);
         ok(received_array == b, "Expected %p, received %p\n", b, received_array);
 
-        for (i = 0; i < 49; i++)
+        for (i = 0; i < ARRAY_SIZE(b); ++i)
         {
             if (i < order * order)
                 expected = 5.0f * a[i];




More information about the wine-cvs mailing list