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

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


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

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

d3dx9/tests: Use ARRAY_SIZE in test_D3DXFloat_Array().

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 258e959..2cf22a4 100644
--- a/dlls/d3dx9_36/tests/math.c
+++ b/dlls/d3dx9_36/tests/math.c
@@ -2513,7 +2513,7 @@ static void test_D3DXFloat_Array(void)
     out = D3DXFloat16To32Array(&single.f, &half, 0);
     ok(out == &single.f, "Got %p, expected %p.\n", out, &single.f);
 
-    for (i = 0; i < sizeof(testdata)/sizeof(testdata[0]); i++)
+    for (i = 0; i < ARRAY_SIZE(testdata); ++i)
     {
         out = D3DXFloat32To16Array(&half, &testdata[i].single_in.f, 1);
         ok(out == &half, "Got %p, expected %p.\n", out, &half);




More information about the wine-cvs mailing list