Fixed some signed/unsigned warnings.
diff --git a/objects/dib.c b/objects/dib.c
index a940315..5c4e8a3 100644
--- a/objects/dib.c
+++ b/objects/dib.c
@@ -522,10 +522,10 @@
if(bmp->dib && bmp->dib->dsBm.bmBitsPixel >= 15 && info->bmiHeader.biBitCount >= 15)
{
/*FIXME: Only RGB dibs supported for now */
- int srcwidth = bmp->dib->dsBm.bmWidth, srcwidthb = bmp->dib->dsBm.bmWidthBytes;
+ unsigned int srcwidth = bmp->dib->dsBm.bmWidth, srcwidthb = bmp->dib->dsBm.bmWidthBytes;
int dstwidthb = DIB_GetDIBWidthBytes( info->bmiHeader.biWidth, info->bmiHeader.biBitCount );
LPBYTE dbits = bits, sbits = (LPBYTE) bmp->dib->dsBm.bmBits + (startscan * srcwidthb);
- int x, y;
+ unsigned int x, y;
if ((info->bmiHeader.biHeight < 0) ^ (bmp->dib->dsBmih.biHeight < 0))
{
diff --git a/objects/enhmetafile.c b/objects/enhmetafile.c
index e0db558..8a9e879 100644
--- a/objects/enhmetafile.c
+++ b/objects/enhmetafile.c
@@ -1214,7 +1214,7 @@
ENHMETAHEADER *emh, *emhTemp;
ENHMETARECORD *emr;
DWORD offset;
- INT i;
+ UINT i;
HANDLETABLE *ht;
INT savedMode = 0;
FLOAT xSrcPixSize, ySrcPixSize, xscale, yscale;
diff --git a/objects/metafile.c b/objects/metafile.c
index 20ef65c..ccda9ab 100644
--- a/objects/metafile.c
+++ b/objects/metafile.c
@@ -469,7 +469,7 @@
METARECORD *mr;
HANDLETABLE16 *ht;
- int offset = 0;
+ unsigned int offset = 0;
WORD i;
HPEN hPen;
HBRUSH hBrush;
@@ -570,7 +570,7 @@
HANDLETABLE16 *ht;
HGLOBAL16 hHT;
SEGPTR spht;
- int offset = 0;
+ unsigned int offset = 0;
WORD i, seg;
HPEN hPen;
HBRUSH hBrush;
@@ -662,7 +662,8 @@
METARECORD *mr;
HANDLETABLE *ht;
BOOL result = TRUE;
- int i, offset = 0;
+ int i;
+ unsigned int offset = 0;
HPEN hPen;
HBRUSH hBrush;
HFONT hFont;
@@ -1216,7 +1217,7 @@
{
HANDLETABLE16 * ht = (void *)GlobalAlloc(GPTR,
handles*sizeof(HANDLETABLE16));
- int i = 0;
+ unsigned int i = 0;
TRACE("(%08x,%p,%p,%d)\n", hdc, handletable, metarecord,
handles);
for (i=0; i<handles; i++)
diff --git a/objects/palette.c b/objects/palette.c
index 764e9aa..aabcd7c 100644
--- a/objects/palette.c
+++ b/objects/palette.c
@@ -213,7 +213,7 @@
LPPALETTEENTRY entries) /* [out] Address of array receiving entries */
{
PALETTEOBJ * palPtr;
- INT numEntries;
+ UINT numEntries;
TRACE("hpal = %04x, count=%i\n", hpalette, count );
@@ -265,7 +265,7 @@
LPPALETTEENTRY entries) /* [in] Address of array of structures */
{
PALETTEOBJ * palPtr;
- INT numEntries;
+ UINT numEntries;
TRACE("hpal=%04x,start=%i,count=%i\n",hpalette,start,count );
diff --git a/objects/text.c b/objects/text.c
index a419f8c..1787deb 100644
--- a/objects/text.c
+++ b/objects/text.c
@@ -64,7 +64,7 @@
UINT wlen = MultiByteToWideChar(codepage,0,str,count,NULL,0);
if (lpDx)
{
- int i = 0, j = 0;
+ unsigned int i = 0, j = 0;
lpDxW = (LPINT)HeapAlloc( GetProcessHeap(), 0, wlen*sizeof(INT));
while(i < count)