Commit 1a45569f authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

d3dx9_36: Avoid signed-unsigned integer comparisons.

parent 1af38621
...@@ -83,7 +83,7 @@ static ULONG WINAPI ID3DXSkinInfoImpl_Release(ID3DXSkinInfo *iface) ...@@ -83,7 +83,7 @@ static ULONG WINAPI ID3DXSkinInfoImpl_Release(ID3DXSkinInfo *iface)
TRACE("%p decreasing refcount to %u\n", This, ref); TRACE("%p decreasing refcount to %u\n", This, ref);
if (ref == 0) { if (ref == 0) {
int i; DWORD i;
for (i = 0; i < This->num_bones; i++) { for (i = 0; i < This->num_bones; i++) {
HeapFree(GetProcessHeap(), 0, This->bones[i].name); HeapFree(GetProcessHeap(), 0, This->bones[i].name);
HeapFree(GetProcessHeap(), 0, This->bones[i].vertices); HeapFree(GetProcessHeap(), 0, This->bones[i].vertices);
......
...@@ -49,7 +49,7 @@ static const struct ...@@ -49,7 +49,7 @@ static const struct
static D3DFORMAT wic_guid_to_d3dformat(const GUID *guid) static D3DFORMAT wic_guid_to_d3dformat(const GUID *guid)
{ {
int i; unsigned int i;
for (i = 0; i < sizeof(wic_pixel_formats) / sizeof(wic_pixel_formats[0]); i++) for (i = 0; i < sizeof(wic_pixel_formats) / sizeof(wic_pixel_formats[0]); i++)
{ {
...@@ -62,7 +62,7 @@ static D3DFORMAT wic_guid_to_d3dformat(const GUID *guid) ...@@ -62,7 +62,7 @@ static D3DFORMAT wic_guid_to_d3dformat(const GUID *guid)
static const GUID *d3dformat_to_wic_guid(D3DFORMAT format) static const GUID *d3dformat_to_wic_guid(D3DFORMAT format)
{ {
int i; unsigned int i;
for (i = 0; i < sizeof(wic_pixel_formats) / sizeof(wic_pixel_formats[0]); i++) for (i = 0; i < sizeof(wic_pixel_formats) / sizeof(wic_pixel_formats[0]); i++)
{ {
...@@ -143,7 +143,7 @@ struct dds_header ...@@ -143,7 +143,7 @@ struct dds_header
static D3DFORMAT dds_fourcc_to_d3dformat(DWORD fourcc) static D3DFORMAT dds_fourcc_to_d3dformat(DWORD fourcc)
{ {
int i; unsigned int i;
static const DWORD known_fourcc[] = { static const DWORD known_fourcc[] = {
MAKEFOURCC('U','Y','V','Y'), MAKEFOURCC('U','Y','V','Y'),
MAKEFOURCC('Y','U','Y','2'), MAKEFOURCC('Y','U','Y','2'),
...@@ -193,7 +193,7 @@ static const struct { ...@@ -193,7 +193,7 @@ static const struct {
static D3DFORMAT dds_rgb_to_d3dformat(const struct dds_pixel_format *pixel_format) static D3DFORMAT dds_rgb_to_d3dformat(const struct dds_pixel_format *pixel_format)
{ {
int i; unsigned int i;
for (i = 0; i < sizeof(rgb_pixel_formats) / sizeof(rgb_pixel_formats[0]); i++) for (i = 0; i < sizeof(rgb_pixel_formats) / sizeof(rgb_pixel_formats[0]); i++)
{ {
...@@ -278,7 +278,7 @@ static D3DFORMAT dds_pixel_format_to_d3dformat(const struct dds_pixel_format *pi ...@@ -278,7 +278,7 @@ static D3DFORMAT dds_pixel_format_to_d3dformat(const struct dds_pixel_format *pi
static HRESULT d3dformat_to_dds_pixel_format(struct dds_pixel_format *pixel_format, D3DFORMAT d3dformat) static HRESULT d3dformat_to_dds_pixel_format(struct dds_pixel_format *pixel_format, D3DFORMAT d3dformat)
{ {
int i; unsigned int i;
memset(pixel_format, 0, sizeof(*pixel_format)); memset(pixel_format, 0, sizeof(*pixel_format));
...@@ -575,7 +575,7 @@ HRESULT load_cube_texture_from_dds(IDirect3DCubeTexture9 *cube_texture, const vo ...@@ -575,7 +575,7 @@ HRESULT load_cube_texture_from_dds(IDirect3DCubeTexture9 *cube_texture, const vo
{ {
HRESULT hr; HRESULT hr;
int face; int face;
int mip_level; UINT mip_level;
UINT size; UINT size;
RECT src_rect; RECT src_rect;
UINT src_pitch; UINT src_pitch;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment