[PATCH 5/5] d3dx9/tests: Avoid SIZE_T in traces.
Matteo Bruni
mbruni at codeweavers.com
Fri Jun 9 14:19:39 CDT 2017
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
---
It caused a warning for me in the 64-bit mingw64 build.
dlls/d3dx9_36/tests/math.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/d3dx9_36/tests/math.c b/dlls/d3dx9_36/tests/math.c
index 8882907b1a..ff3b098991 100644
--- a/dlls/d3dx9_36/tests/math.c
+++ b/dlls/d3dx9_36/tests/math.c
@@ -177,17 +177,17 @@ static void expect_matrix_(unsigned int line, const D3DXMATRIX *expected, const
}
#define expect_vec4_array(count, expected, vector, ulps) expect_vec4_array_(__LINE__, count, expected, vector, ulps)
-static void expect_vec4_array_(unsigned int line, SIZE_T count, const D3DXVECTOR4 *expected,
+static void expect_vec4_array_(unsigned int line, unsigned int count, const D3DXVECTOR4 *expected,
const D3DXVECTOR4 *vector, unsigned int ulps)
{
BOOL equal;
- SIZE_T i;
+ unsigned int i;
for (i = 0; i < count; ++i)
{
equal = compare_vec4(&expected[i], &vector[i], ulps);
ok_(__FILE__, line)(equal,
- "Got unexpected vector {%.8e, %.8e, %.8e, %.8e} at index %lu, expected {%.8e, %.8e, %.8e, %.8e}.\n",
+ "Got unexpected vector {%.8e, %.8e, %.8e, %.8e} at index %u, expected {%.8e, %.8e, %.8e, %.8e}.\n",
vector[i].x, vector[i].y, vector[i].z, vector[i].w, i,
expected[i].x, expected[i].y, expected[i].z, expected[i].w);
if (!equal)
--
2.13.0
More information about the wine-patches
mailing list