winex11.drv: Avoid signed-unsigned integer comparisons.
This commit is contained in:
parent
a9983e6cd2
commit
0ff8c9da52
|
@ -1220,8 +1220,10 @@ static Cursor create_xlib_color_cursor( HDC hdc, const ICONINFOEXW *icon, int wi
|
||||||
}
|
}
|
||||||
else /* invert the mask */
|
else /* invert the mask */
|
||||||
{
|
{
|
||||||
|
unsigned int j;
|
||||||
|
|
||||||
ptr = (unsigned int *)mask_bits;
|
ptr = (unsigned int *)mask_bits;
|
||||||
for (i = 0; i < info->bmiHeader.biSizeImage / sizeof(*ptr); i++, ptr++) *ptr ^= ~0u;
|
for (j = 0; j < info->bmiHeader.biSizeImage / sizeof(*ptr); j++, ptr++) *ptr ^= ~0u;
|
||||||
}
|
}
|
||||||
|
|
||||||
vis.depth = 1;
|
vis.depth = 1;
|
||||||
|
|
|
@ -534,7 +534,8 @@ static BOOL create_icon_pixmaps( HDC hdc, const ICONINFO *icon, Pixmap *icon_ret
|
||||||
XVisualInfo vis = default_visual;
|
XVisualInfo vis = default_visual;
|
||||||
struct gdi_image_bits bits;
|
struct gdi_image_bits bits;
|
||||||
Pixmap color_pixmap = 0, mask_pixmap = 0;
|
Pixmap color_pixmap = 0, mask_pixmap = 0;
|
||||||
int i, lines;
|
int lines;
|
||||||
|
unsigned int i;
|
||||||
|
|
||||||
bits.ptr = NULL;
|
bits.ptr = NULL;
|
||||||
bits.free = NULL;
|
bits.free = NULL;
|
||||||
|
|
|
@ -763,7 +763,7 @@ static void lfsz_calc_hash(LFANDSIZE *plfsz)
|
||||||
{
|
{
|
||||||
DWORD hash = 0, *ptr, two_chars;
|
DWORD hash = 0, *ptr, two_chars;
|
||||||
WORD *pwc;
|
WORD *pwc;
|
||||||
int i;
|
unsigned int i;
|
||||||
|
|
||||||
hash ^= plfsz->devsize.cx;
|
hash ^= plfsz->devsize.cx;
|
||||||
hash ^= plfsz->devsize.cy;
|
hash ^= plfsz->devsize.cy;
|
||||||
|
|
Loading…
Reference in New Issue