wined3d/cubetexture.c -- fix type of loop variable
Gerald Pfeifer
gerald at pfeifer.com
Thu Nov 1 11:15:45 CDT 2007
This->baseTexture.levels is unsigned, as is the range from 0 to levels,
thus mark i unsigned.
Gerald
ChangeLog:
Fix type of loop variable in IWineD3DCubeTextureImpl_Destroy().
Index: dlls/wined3d/cubetexture.c
===================================================================
RCS file: /home/wine/wine/dlls/wined3d/cubetexture.c,v
retrieving revision 1.38
diff -u -3 -p -r1.38 cubetexture.c
--- dlls/wined3d/cubetexture.c 18 Sep 2007 10:33:07 -0000 1.38
+++ dlls/wined3d/cubetexture.c 1 Nov 2007 16:13:39 -0000
@@ -272,7 +272,7 @@ static void WINAPI IWineD3DCubeTextureIm
******************************************* */
static void WINAPI IWineD3DCubeTextureImpl_Destroy(IWineD3DCubeTexture *iface, D3DCB_DESTROYSURFACEFN D3DCB_DestroySurface) {
IWineD3DCubeTextureImpl *This = (IWineD3DCubeTextureImpl *)iface;
- int i,j;
+ unsigned i; int j;
TRACE("(%p) : Cleaning up\n",This);
for (i = 0; i < This->baseTexture.levels; i++) {
for (j = 0; j < 6; j++) {
More information about the wine-patches
mailing list