From ddf922d7a180066f8c4b65656055a1c5fac5d12a Mon Sep 17 00:00:00 2001 From: Andrew Talbot Date: Mon, 14 Jan 2013 21:44:19 +0000 Subject: [PATCH] dbghelp: Avoid signed-unsigned integer comparisons. --- dlls/dbghelp/elf_module.c | 2 +- dlls/dbghelp/msc.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/dbghelp/elf_module.c b/dlls/dbghelp/elf_module.c index 874835d4c53..f8015c1b6c2 100644 --- a/dlls/dbghelp/elf_module.c +++ b/dlls/dbghelp/elf_module.c @@ -273,7 +273,7 @@ static BOOL elf_map_file(struct elf_map_file_data* emfd, struct image_file_map* { static const BYTE elf_signature[4] = { ELFMAG0, ELFMAG1, ELFMAG2, ELFMAG3 }; struct stat statbuf; - int i; + unsigned int i; Elf_Phdr phdr; size_t tmp, page_mask = sysconf( _SC_PAGESIZE ) - 1; char* filename; diff --git a/dlls/dbghelp/msc.c b/dlls/dbghelp/msc.c index 7a68e1d1ff7..ddabd076655 100644 --- a/dlls/dbghelp/msc.c +++ b/dlls/dbghelp/msc.c @@ -1370,7 +1370,8 @@ static void codeview_snarf_linetab(const struct msc_debug_info* msc_dbg, const B { const BYTE* ptr = linetab; int nfile, nseg; - int i, j, k; + int i, j; + unsigned int k; const unsigned int* filetab; const unsigned int* lt_ptr; const unsigned short* linenos;