Andrew Talbot : dbghelp: Avoid signed-unsigned integer comparisons.
Alexandre Julliard
julliard at winehq.org
Tue Jan 15 13:46:17 CST 2013
Module: wine
Branch: master
Commit: ddf922d7a180066f8c4b65656055a1c5fac5d12a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ddf922d7a180066f8c4b65656055a1c5fac5d12a
Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date: Mon Jan 14 21:44:19 2013 +0000
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 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;
More information about the wine-cvs
mailing list