Andrew Talbot : fusion: Sign-compare warnings fix.

Alexandre Julliard julliard at winehq.org
Mon Aug 4 08:53:48 CDT 2008


Module: wine
Branch: master
Commit: 5f6d8da932df1bea81a5100a22073f1cff4d1f6e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5f6d8da932df1bea81a5100a22073f1cff4d1f6e

Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date:   Sat Aug  2 22:09:45 2008 +0100

fusion: Sign-compare warnings fix.

---

 dlls/fusion/assembly.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/dlls/fusion/assembly.c b/dlls/fusion/assembly.c
index 240c47c..ec86fd3 100644
--- a/dlls/fusion/assembly.c
+++ b/dlls/fusion/assembly.c
@@ -747,7 +747,7 @@ static LPSTR assembly_dup_str(ASSEMBLY *assembly, DWORD index)
 HRESULT assembly_get_name(ASSEMBLY *assembly, LPSTR *name)
 {
     BYTE *ptr;
-    ULONG offset;
+    LONG offset;
     DWORD stridx;
 
     offset = assembly->tables[TableFromToken(mdtAssembly)].offset;
@@ -839,7 +839,7 @@ static BYTE *assembly_get_blob(ASSEMBLY *assembly, WORD index, ULONG *size)
 
 static void bytes_to_str(BYTE *bytes, DWORD len, LPSTR str)
 {
-    int i;
+    DWORD i;
 
     static const char hexval[16] = {
         '0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'
@@ -859,7 +859,8 @@ static void bytes_to_str(BYTE *bytes, DWORD len, LPSTR str)
 HRESULT assembly_get_pubkey_token(ASSEMBLY *assembly, LPSTR *token)
 {
     ASSEMBLYTABLE *asmtbl;
-    ULONG i, offset, size;
+    ULONG i, size;
+    LONG offset;
     BYTE *hashdata;
     HCRYPTPROV crypt;
     HCRYPTHASH hash;




More information about the wine-cvs mailing list