From a697d99d66245601e47b5b1b9c877020eef21b02 Mon Sep 17 00:00:00 2001 From: Andrew Talbot Date: Sat, 27 Sep 2008 17:35:03 +0100 Subject: [PATCH] ddraw: Sign-compare warnings fix. --- dlls/ddraw/ddraw.c | 2 +- dlls/ddraw/device.c | 8 ++++---- dlls/ddraw/direct3d.c | 2 +- dlls/ddraw/utils.c | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/dlls/ddraw/ddraw.c b/dlls/ddraw/ddraw.c index 9fdbd27ff1a..3af4da47c49 100644 --- a/dlls/ddraw/ddraw.c +++ b/dlls/ddraw/ddraw.c @@ -1842,7 +1842,7 @@ D3D7CB_CreateSurface(IUnknown *device, { ICOM_THIS_FROM(IDirectDrawImpl, IDirectDraw7, device); IDirectDrawSurfaceImpl *surf = NULL; - int i = 0; + UINT i = 0; DDSCAPS2 searchcaps = This->tex_root->surface_desc.ddsCaps; TRACE("(%p) call back. surf=%p. Face %d level %d\n", device, This->tex_root, Face, level); diff --git a/dlls/ddraw/device.c b/dlls/ddraw/device.c index 84d55e08090..cb0bda51448 100644 --- a/dlls/ddraw/device.c +++ b/dlls/ddraw/device.c @@ -1165,7 +1165,7 @@ IDirect3DDeviceImpl_7_EnumTextureFormats(IDirect3DDevice7 *iface, ICOM_THIS_FROM(IDirect3DDeviceImpl, IDirect3DDevice7, iface); HRESULT hr; WINED3DDISPLAYMODE mode; - int i; + unsigned int i; WINED3DFORMAT FormatList[] = { /* 32 bit */ @@ -1328,7 +1328,7 @@ IDirect3DDeviceImpl_2_EnumTextureFormats(IDirect3DDevice2 *iface, { ICOM_THIS_FROM(IDirect3DDeviceImpl, IDirect3DDevice2, iface); HRESULT hr; - int i; + unsigned int i; WINED3DDISPLAYMODE mode; WINED3DFORMAT FormatList[] = { @@ -3982,7 +3982,7 @@ IDirect3DDeviceImpl_7_DrawPrimitiveStrided(IDirect3DDevice7 *iface, { ICOM_THIS_FROM(IDirect3DDeviceImpl, IDirect3DDevice7, iface); WineDirect3DVertexStridedData WineD3DStrided; - int i; + DWORD i; UINT PrimitiveCount; HRESULT hr; @@ -4160,7 +4160,7 @@ IDirect3DDeviceImpl_7_DrawIndexedPrimitiveStrided(IDirect3DDevice7 *iface, { ICOM_THIS_FROM(IDirect3DDeviceImpl, IDirect3DDevice7, iface); WineDirect3DVertexStridedData WineD3DStrided; - int i; + DWORD i; UINT PrimitiveCount; HRESULT hr; diff --git a/dlls/ddraw/direct3d.c b/dlls/ddraw/direct3d.c index d3ce886c10e..5e21e5befa1 100644 --- a/dlls/ddraw/direct3d.c +++ b/dlls/ddraw/direct3d.c @@ -1138,7 +1138,7 @@ IDirect3DImpl_7_EnumZBufferFormats(IDirect3D7 *iface, { ICOM_THIS_FROM(IDirectDrawImpl, IDirect3D7, iface); HRESULT hr; - int i; + unsigned int i; WINED3DDISPLAYMODE d3ddm; WINED3DDEVTYPE type; diff --git a/dlls/ddraw/utils.c b/dlls/ddraw/utils.c index 937caa4d2da..02d74c739b5 100644 --- a/dlls/ddraw/utils.c +++ b/dlls/ddraw/utils.c @@ -902,7 +902,7 @@ DWORD get_flexible_vertex_size(DWORD d3dvtVertexType) { DWORD size = 0; - int i; + DWORD i; if (d3dvtVertexType & D3DFVF_NORMAL) size += 3 * sizeof(D3DVALUE); if (d3dvtVertexType & D3DFVF_DIFFUSE) size += sizeof(DWORD);