dbghelp: Avoid signed-unsigned integer comparisons

Andrew Talbot andrew.talbot at talbotville.com
Wed Jan 9 15:36:14 CST 2013


Changelog:
    dbghelp: Avoid signed-unsigned integer comparisons.

diff --git a/dlls/dbghelp/elf_module.c b/dlls/dbghelp/elf_module.c
index 92b4a31..4da1a7b 100644
--- a/dlls/dbghelp/elf_module.c
+++ b/dlls/dbghelp/elf_module.c
@@ -276,8 +276,8 @@ static BOOL elf_map_file_read(struct image_file_map* fmap, struct elf_map_file_d
 static BOOL elf_map_file(struct elf_map_file_data* emfd, struct image_file_map* fmap)
 {
     static const BYTE   elf_signature[4] = { ELFMAG0, ELFMAG1, ELFMAG2, ELFMAG3 };
-    struct stat	        statbuf;
-    int                 i;
+    struct stat         statbuf;
+    unsigned int        i;
     Elf_Phdr            phdr;
     unsigned long       tmp, page_mask = getpagesize() - 1;
     char*               filename;
diff --git a/dlls/dbghelp/msc.c b/dlls/dbghelp/msc.c
index 7a68e1d..40ef297 100644
--- a/dlls/dbghelp/msc.c
+++ b/dlls/dbghelp/msc.c
@@ -1369,8 +1369,9 @@ static void codeview_snarf_linetab(const struct msc_debug_info* msc_dbg, const B
                                    int size, BOOL pascal_str)
 {
     const BYTE*                 ptr = linetab;
-    int				nfile, nseg;
-    int				i, j, k;
+    int                         nfile, nseg;
+    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/20130109/8ec416a9/attachment-0001.html>


More information about the wine-patches mailing list