Commit 4bfd7059 authored by Joris Huizer's avatar Joris Huizer Committed by Alexandre Julliard

winedump: sign-compare fixes.

parent e1e54d1e
...@@ -44,7 +44,7 @@ static void dump_mdmp_string(DWORD rva) ...@@ -44,7 +44,7 @@ static void dump_mdmp_string(DWORD rva)
printf("<<?>>"); printf("<<?>>");
} }
static const MINIDUMP_DIRECTORY* get_mdmp_dir(const MINIDUMP_HEADER* hdr, int str_idx) static const MINIDUMP_DIRECTORY* get_mdmp_dir(const MINIDUMP_HEADER* hdr, unsigned int str_idx)
{ {
const MINIDUMP_DIRECTORY* dir; const MINIDUMP_DIRECTORY* dir;
unsigned int i; unsigned int i;
......
...@@ -511,6 +511,7 @@ static void codeview_dump_one_type(unsigned curr_type, const union codeview_type ...@@ -511,6 +511,7 @@ static void codeview_dump_one_type(unsigned curr_type, const union codeview_type
{ {
const union codeview_reftype* reftype = (const union codeview_reftype*)type; const union codeview_reftype* reftype = (const union codeview_reftype*)type;
int i, leaf_len, value; int i, leaf_len, value;
unsigned int j;
const char* str; const char* str;
switch (type->generic.id) switch (type->generic.id)
...@@ -663,9 +664,9 @@ static void codeview_dump_one_type(unsigned curr_type, const union codeview_type ...@@ -663,9 +664,9 @@ static void codeview_dump_one_type(unsigned curr_type, const union codeview_type
case LF_ARGLIST_V2: case LF_ARGLIST_V2:
printf("\t%x => Arglist V2(#%u):", curr_type, reftype->arglist_v2.num); printf("\t%x => Arglist V2(#%u):", curr_type, reftype->arglist_v2.num);
for (i = 0; i < reftype->arglist_v2.num; i++) for (j = 0; j < reftype->arglist_v2.num; j++)
{ {
printf("\t %x", reftype->arglist_v2.args[i]); printf("\t %x", reftype->arglist_v2.args[j]);
} }
printf("\t\n"); printf("\t\n");
break; break;
...@@ -786,9 +787,9 @@ static void codeview_dump_one_type(unsigned curr_type, const union codeview_type ...@@ -786,9 +787,9 @@ static void codeview_dump_one_type(unsigned curr_type, const union codeview_type
case LF_DERIVED_V2: case LF_DERIVED_V2:
printf("\t%x => Derived V2(#%u):", curr_type, reftype->derived_v2.num); printf("\t%x => Derived V2(#%u):", curr_type, reftype->derived_v2.num);
for (i = 0; i < reftype->derived_v2.num; i++) for (j = 0; j < reftype->derived_v2.num; j++)
{ {
printf(" %x", reftype->derived_v2.drvdcls[i]); printf(" %x", reftype->derived_v2.drvdcls[j]);
} }
printf("\n"); printf("\n");
break; break;
...@@ -832,9 +833,10 @@ int codeview_dump_types_from_block(const void* table, unsigned long len) ...@@ -832,9 +833,10 @@ int codeview_dump_types_from_block(const void* table, unsigned long len)
int codeview_dump_symbols(const void* root, unsigned long size) int codeview_dump_symbols(const void* root, unsigned long size)
{ {
int i, length; unsigned int i;
char* curr_func = NULL; int length;
int nest_block = 0; char* curr_func = NULL;
int nest_block = 0;
/* /*
* Loop over the different types of records and whenever we * Loop over the different types of records and whenever we
* find something we are interested in, record it and move on. * find something we are interested in, record it and move on.
......
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