Module: wine Branch: master Commit: e56adf98847e0518b1f6f51e77a221c7d0ca52f9 URL: http://source.winehq.org/git/wine.git/?a=commit;h=e56adf98847e0518b1f6f51e77...
Author: Henri Verbeet hverbeet@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@codeweavers.com Signed-off-by: Matteo Bruni mbruni@codeweavers.com Signed-off-by: Alexandre Julliard julliard@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];