[PATCH] d3dx9_36/tests: Use proper printf format (PVS-Studio)
Nikolay Sivov
nsivov at codeweavers.com
Tue Oct 27 16:27:53 CDT 2015
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
dlls/d3dx9_36/tests/mesh.c | 6 +++---
dlls/d3dx9_36/tests/xfile.c | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/d3dx9_36/tests/mesh.c b/dlls/d3dx9_36/tests/mesh.c
index 4186e19..3b1fafa 100644
--- a/dlls/d3dx9_36/tests/mesh.c
+++ b/dlls/d3dx9_36/tests/mesh.c
@@ -1487,8 +1487,8 @@ static void check_vertex_buffer_(int line, ID3DXMesh *mesh, const void *vertices
return;
if (mesh_fvf == fvf) {
- DWORD vertex_size = D3DXGetFVFVertexSize(fvf);
- int i;
+ DWORD vertex_size = D3DXGetFVFVertexSize(fvf), i;
+
for (i = 0; i < min(num_vertices, mesh_num_vertices); i++)
{
const FLOAT *exp_float = vertices;
@@ -2568,7 +2568,7 @@ static void test_polygon(IDirect3DDevice9 *device, float length, unsigned int si
mesh.fvf = D3DFVF_XYZ | D3DFVF_NORMAL;
- sprintf(name, "polygon (%g, %d)", length, sides);
+ sprintf(name, "polygon (%g, %u)", length, sides);
compare_mesh(name, polygon, &mesh);
free_mesh(&mesh);
diff --git a/dlls/d3dx9_36/tests/xfile.c b/dlls/d3dx9_36/tests/xfile.c
index 1a56f20..9c722b7 100644
--- a/dlls/d3dx9_36/tests/xfile.c
+++ b/dlls/d3dx9_36/tests/xfile.c
@@ -343,7 +343,7 @@ static void test_dump(void)
goto exit;
}
- printf("Load templates file (%d bytes)\n", size);
+ printf("Load templates file (%u bytes)\n", size);
ret = D3DXFileCreate(&xfile);
ok(ret == S_OK, "D3DXCreateFile failed with %#x\n", ret);
--
2.6.1
More information about the wine-patches
mailing list