d3dx9/tests: Use ARRAY_SIZE in test_D3DXFloat_Array().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2017-05-05 13:40:31 +02:00 committed by Alexandre Julliard
parent 9729f3fccf
commit 38587126f1
1 changed files with 1 additions and 1 deletions

View File

@ -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);