Module: wine Branch: master Commit: 12c8400631bc0c4a85a94ef540a00e4ea0275f55 URL: http://source.winehq.org/git/wine.git/?a=commit;h=12c8400631bc0c4a85a94ef540...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Tue May 23 11:04:28 2017 +0200
d3dx9/tests: Use ARRAY_SIZE in test_D3DXSHEvalHemisphereLight().
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 | 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 541f4d9..a1d7930 100644 --- a/dlls/d3dx9_36/tests/math.c +++ b/dlls/d3dx9_36/tests/math.c @@ -3007,7 +3007,7 @@ static void test_D3DXSHEvalHemisphereLight(void) top.r = 0.1f; top.g = 2.1f; top.b = 2.3f; top.a = 4.3f; bottom.r = 8.71f; bottom.g = 5.41f; bottom.b = 6.94f; bottom.a = 8.43f;
- 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 + 1; order++) { for (j = 0; j < 49; j++)