dbghelp: Avoid signed-unsigned integer comparisons (try 2)
Andrew Talbot
andrew.talbot at talbotville.com
Mon Jan 14 15:44:19 CST 2013
Changelog:
dbghelp: Avoid signed-unsigned integer comparisons.
diff --git a/dlls/dbghelp/elf_module.c b/dlls/dbghelp/elf_module.c
index 874835d..f8015c1 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 7a68e1d..ddabd07 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;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20130114/231c803c/attachment.html>
More information about the wine-patches
mailing list