dlls/d3d9/tests/visual.c -- address three compiler warnings (RESEND)

Gerald Pfeifer gerald at pfeifer.com
Fri Jan 25 06:26:40 CST 2008


This is the undisputed part of this patch and gets us rid of another 
three compiler warnings. :-)

Gerald

ChangeLog:
Fix the type of three loop variables.

Index: dlls/d3d9/tests/visual.c
===================================================================
RCS file: /home/wine/wine/dlls/d3d9/tests/visual.c,v
retrieving revision 1.65
diff -u -3 -p -r1.65 visual.c
--- dlls/d3d9/tests/visual.c	22 Jan 2008 12:03:05 -0000	1.65
+++ dlls/d3d9/tests/visual.c	25 Jan 2008 12:25:38 -0000
@@ -557,7 +557,7 @@ static void test_mova(IDirect3DDevice9 *
     IDirect3DVertexShader9 *mova_shader = NULL;
     IDirect3DVertexShader9 *mov_shader = NULL;
     HRESULT hr;
-    int i, j;
+    UINT i, j;
 
     hr = IDirect3DDevice9_CreateVertexShader(device, mova_test, &mova_shader);
     ok(SUCCEEDED(hr), "CreateVertexShader failed (%08x)\n", hr);
@@ -862,7 +862,8 @@ static void test_cube_wrap(IDirect3DDevi
     IDirect3DSurface9 *surface = NULL;
     D3DLOCKED_RECT locked_rect;
     HRESULT hr;
-    INT x, y, face;
+    UINT x;
+    INT y, face;
 
     hr = IDirect3DDevice9_CreateVertexDeclaration(device, decl_elements, &vertex_declaration);
     ok(SUCCEEDED(hr), "CreateVertexDeclaration failed (0x%08x)\n", hr);
 



More information about the wine-patches mailing list