fix some -Wsign-compare warings
Stefan Huehner
stefan at huehner.org
Thu Jul 21 05:49:10 CDT 2005
Hi,
fix some warnings by using correct datatypes.
ChangeLog,
- fix some -Wsign-compare warnings
Regards,
Stefan
-------------- next part --------------
Index: tools/winedump/le.c
===================================================================
RCS file: /home/wine/wine/tools/winedump/le.c,v
retrieving revision 1.3
diff -u -p -r1.3 le.c
--- tools/winedump/le.c 5 Jul 2005 14:26:54 -0000 1.3
+++ tools/winedump/le.c 21 Jul 2005 10:41:37 -0000
@@ -229,13 +229,13 @@ static void dump_le_header( const IMAGE_
static void dump_le_objects( const void *base, const IMAGE_VXD_HEADER *le )
{
struct o32_obj *pobj;
- int i;
+ unsigned int i;
printf("\nObject table:\n");
pobj = (struct o32_obj *)((const unsigned char *)le + le->e32_objtab);
for (i = 0; i < le->e32_objcnt; i++)
{
- int j;
+ unsigned int j;
struct o32_map *pmap=0;
printf(" Obj. Rel.Base Codesize Flags Tableidx Tablesize Name\n");
Index: tools/winedump/minidump.c
===================================================================
RCS file: /home/wine/wine/tools/winedump/minidump.c,v
retrieving revision 1.3
diff -u -p -r1.3 minidump.c
--- tools/winedump/minidump.c 24 May 2005 11:45:14 -0000 1.3
+++ tools/winedump/minidump.c 21 Jul 2005 10:41:37 -0000
@@ -47,7 +47,7 @@ static void dump_mdmp_string(DWORD rva)
static MINIDUMP_DIRECTORY* get_mdmp_dir(const MINIDUMP_HEADER* hdr, int str_idx)
{
MINIDUMP_DIRECTORY* dir;
- int i;
+ unsigned int i;
for (i = 0; i < hdr->NumberOfStreams; i++)
{
@@ -92,7 +92,7 @@ void mdmp_dump(void)
{
MINIDUMP_THREAD_LIST* mtl = (MINIDUMP_THREAD_LIST*)stream;
MINIDUMP_THREAD* mt = &mtl->Threads[0];
- int i;
+ unsigned int i;
printf("Threads: %lu\n", mtl->NumberOfThreads);
for (i = 0; i < mtl->NumberOfThreads; i++, mt++)
@@ -117,7 +117,7 @@ void mdmp_dump(void)
{
MINIDUMP_MODULE_LIST* mml = (MINIDUMP_MODULE_LIST*)stream;
MINIDUMP_MODULE* mm = &mml->Modules[0];
- int i;
+ unsigned int i;
const char* p1;
const char* p2;
@@ -209,7 +209,7 @@ void mdmp_dump(void)
{
MINIDUMP_MEMORY_LIST* mml = (MINIDUMP_MEMORY_LIST*)stream;
MINIDUMP_MEMORY_DESCRIPTOR* mmd = &mml->MemoryRanges[0];
- int i;
+ unsigned int i;
printf("Memory Ranges: %lu\n", mml->NumberOfMemoryRanges);
for (i = 0; i < mml->NumberOfMemoryRanges; i++, mmd++)
@@ -338,7 +338,7 @@ void mdmp_dump(void)
case ExceptionStream:
{
MINIDUMP_EXCEPTION_STREAM* mes = (MINIDUMP_EXCEPTION_STREAM*)stream;
- int i;
+ unsigned int i;
printf("Exception:\n");
printf(" ThreadId: %08lx\n", mes->ThreadId);
More information about the wine-patches
mailing list