Andrew Talbot : dbghelp: Sign-compare warnings fix.

Alexandre Julliard julliard at winehq.org
Thu Sep 25 07:13:37 CDT 2008


Module: wine
Branch: master
Commit: c9563e10fc810b065a2330d98c731c488b555c90
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c9563e10fc810b065a2330d98c731c488b555c90

Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date:   Wed Sep 24 20:50:05 2008 +0100

dbghelp: Sign-compare warnings fix.

---

 dlls/dbghelp/minidump.c |    4 ++--
 dlls/dbghelp/msc.c      |    4 ++--
 dlls/dbghelp/source.c   |    2 +-
 dlls/dbghelp/stabs.c    |    2 +-
 dlls/dbghelp/stack.c    |    2 +-
 dlls/dbghelp/symbol.c   |    2 +-
 dlls/dbghelp/type.c     |    4 ++--
 7 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/dlls/dbghelp/minidump.c b/dlls/dbghelp/minidump.c
index 52458f2..c506be4 100644
--- a/dlls/dbghelp/minidump.c
+++ b/dlls/dbghelp/minidump.c
@@ -411,7 +411,7 @@ static  unsigned        dump_exception_info(struct dump_context* dc,
     MINIDUMP_EXCEPTION_STREAM   mdExcpt;
     EXCEPTION_RECORD            rec, *prec;
     CONTEXT                     ctx, *pctx;
-    int                         i;
+    DWORD                       i;
 
     mdExcpt.ThreadId = except->ThreadId;
     mdExcpt.__alignment = 0;
@@ -907,7 +907,7 @@ BOOL WINAPI MiniDumpReadDumpStream(PVOID base, ULONG str_idx,
     if (mdHead->Signature == MINIDUMP_SIGNATURE)
     {
         MINIDUMP_DIRECTORY* dir;
-        int                 i;
+        DWORD               i;
 
         dir = (MINIDUMP_DIRECTORY*)((char*)base + mdHead->StreamDirectoryRva);
         for (i = 0; i < mdHead->NumberOfStreams; i++, dir++)
diff --git a/dlls/dbghelp/msc.c b/dlls/dbghelp/msc.c
index 9b73635..ff322b7 100644
--- a/dlls/dbghelp/msc.c
+++ b/dlls/dbghelp/msc.c
@@ -68,7 +68,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(dbghelp_msc);
 
 static void dump(const void* ptr, unsigned len)
 {
-    int         i, j;
+    unsigned int i, j;
     char        msg[128];
     const char* hexof = "0123456789abcdef";
     const BYTE* x = (const BYTE*)ptr;
@@ -829,7 +829,7 @@ static void codeview_add_func_signature_args(struct codeview_type_parse* ctp,
     sym->rettype = codeview_fetch_type(ctp, ret_type, FALSE);
     if (args_list && (reftype = codeview_jump_to_type(ctp, args_list)))
     {
-        int i;
+        unsigned int i;
         switch (reftype->generic.id)
         {
         case LF_ARGLIST_V1:
diff --git a/dlls/dbghelp/source.c b/dlls/dbghelp/source.c
index d02a392..8eef337 100644
--- a/dlls/dbghelp/source.c
+++ b/dlls/dbghelp/source.c
@@ -235,7 +235,7 @@ BOOL WINAPI SymEnumLines(HANDLE hProcess, ULONG64 base, PCSTR compiland,
     hash_table_iter_init(&pair.effective->ht_symbols, &hti, NULL);
     while ((ptr = hash_table_iter_up(&hti)))
     {
-        int    i;
+        unsigned int    i;
 
         sym = GET_ENTRY(ptr, struct symt_ht, hash_elt);
         if (sym->symt.tag != SymTagFunction) continue;
diff --git a/dlls/dbghelp/stabs.c b/dlls/dbghelp/stabs.c
index 9955b7e..3cba34f 100644
--- a/dlls/dbghelp/stabs.c
+++ b/dlls/dbghelp/stabs.c
@@ -1131,7 +1131,7 @@ static inline void pending_add(struct pending_block* pending, const char* name,
 static void pending_flush(struct pending_block* pending, struct module* module, 
                           struct symt_function* func, struct symt_block* block)
 {
-    int i;
+    unsigned int i;
 
     for (i = 0; i < pending->num; i++)
     {
diff --git a/dlls/dbghelp/stack.c b/dlls/dbghelp/stack.c
index 9b70f09..04f36fb 100644
--- a/dlls/dbghelp/stack.c
+++ b/dlls/dbghelp/stack.c
@@ -386,7 +386,7 @@ static BOOL stack_walk(struct stack_walk_callback* cb, LPSTACKFRAME frame)
 
     if (curr_mode == stm_16bit)
     {
-        int     i;
+        unsigned int     i;
 
         p = sw_xlat_addr(cb, &frame->AddrFrame);
         if (!sw_read_mem(cb, p + sizeof(WORD), &val, sizeof(WORD)))
diff --git a/dlls/dbghelp/symbol.c b/dlls/dbghelp/symbol.c
index a4a1683..682f37a 100644
--- a/dlls/dbghelp/symbol.c
+++ b/dlls/dbghelp/symbol.c
@@ -795,7 +795,7 @@ static BOOL symt_enum_locals_helper(struct module_pair* pair,
 {
     struct symt*        lsym = NULL;
     DWORD               pc = pair->pcs->ctx_frame.InstructionOffset;
-    int                 i;
+    unsigned int        i;
 
     for (i=0; i<vector_length(v); i++)
     {
diff --git a/dlls/dbghelp/type.c b/dlls/dbghelp/type.c
index aeb3e75..3e51782 100644
--- a/dlls/dbghelp/type.c
+++ b/dlls/dbghelp/type.c
@@ -218,7 +218,7 @@ BOOL symt_add_udt_element(struct module* module, struct symt_udt* udt_type,
     TRACE_(dbghelp_symt)("Adding %s to UDT %s\n", name, udt_type->hash_elt.name);
     if (name)
     {
-        int    i;
+        unsigned int    i;
         for (i=0; i<vector_length(&udt_type->vchildren); i++)
         {
             m = *(struct symt_data**)vector_at(&udt_type->vchildren, i);
@@ -384,7 +384,7 @@ BOOL WINAPI SymEnumTypes(HANDLE hProcess, ULONG64 BaseOfDll,
     const char*         tmp;
     struct symt*        type;
     DWORD64             size;
-    int                 i;
+    unsigned int        i;
 
     TRACE("(%p %s %p %p)\n",
           hProcess, wine_dbgstr_longlong(BaseOfDll), EnumSymbolsCallback,




More information about the wine-cvs mailing list