Fix some -Wsign-compare warnings.

This commit is contained in:
Stefan Huehner 2005-07-21 11:58:39 +00:00 committed by Alexandre Julliard
parent 4605b9558f
commit 76fdac0368
2 changed files with 7 additions and 7 deletions

View file

@ -229,13 +229,13 @@ static void dump_le_header( const IMAGE_VXD_HEADER *le )
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");

View file

@ -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);