From c9563e10fc810b065a2330d98c731c488b555c90 Mon Sep 17 00:00:00 2001 From: Andrew Talbot Date: Wed, 24 Sep 2008 20:50:05 +0100 Subject: [PATCH] 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 52458f24f0..c506be4e1e 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 9b736358dd..ff322b7d15 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 d02a392270..8eef33727c 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 9955b7eac6..3cba34fdab 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 9b70f09a13..04f36fb7c1 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 a4a1683911..682f37ae5d 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; ihash_elt.name); if (name) { - int i; + unsigned int i; for (i=0; ivchildren); 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, -- 2.32.0.93.g670b81a890