[PATCH 5/5] d3dx9/tests: Use ARRAY_SIZE in test_D3DXSHScale().
Henri Verbeet
hverbeet at codeweavers.com
Thu May 25 15:01:39 CDT 2017
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
---
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];
--
2.1.4
More information about the wine-patches
mailing list