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

Alexandre Julliard julliard at winehq.org
Thu May 25 14:42:15 CDT 2017


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Tue May 23 11:04:29 2017 +0200

d3dx9/tests: Use ARRAY_SIZE in test_D3DXSHEvalSphericalLight().

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 a1d7930..c8000a1 100644
--- a/dlls/d3dx9_36/tests/math.c
+++ b/dlls/d3dx9_36/tests/math.c
@@ -3160,7 +3160,7 @@ static void test_D3DXSHEvalSphericalLight(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++)
         {




More information about the wine-cvs mailing list