Nikolay Sivov : d3dx9_36/tests: Use proper printf format (PVS-Studio).
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Oct 28 10:16:15 CDT 2015
Module: wine
Branch: master
Commit: 67738a41c414a0e9ba15d108f49ed7904f612d87
URL: http://source.winehq.org/git/wine.git/?a=commit;h=67738a41c414a0e9ba15d108f49ed7904f612d87
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Wed Oct 28 00:27:53 2015 +0300
d3dx9_36/tests: Use proper printf format (PVS-Studio).
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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);
More information about the wine-cvs
mailing list