Michael Stefaniuc : kernel: Wsign-compare warning fix.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Aug 1 04:57:38 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: cd5072f89c088aa6e9eda8f0b7fa7831a8f572c5
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=cd5072f89c088aa6e9eda8f0b7fa7831a8f572c5

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Fri Jul 28 00:00:06 2006 +0200

kernel: Wsign-compare warning fix.

---

 dlls/kernel/format_msg.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/kernel/format_msg.c b/dlls/kernel/format_msg.c
index 26ffcec..ecca98b 100644
--- a/dlls/kernel/format_msg.c
+++ b/dlls/kernel/format_msg.c
@@ -181,7 +181,7 @@ #if defined(__i386__) || defined(__sparc
 
 #define ADD_TO_T(c) do { \
         *t++=c;\
-        if (t-target == talloced) {\
+        if ((DWORD)(t-target) == talloced) {\
             target = HeapReAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,target,talloced*2);\
             t = target+talloced;\
             talloced*=2;\
@@ -395,7 +395,7 @@ #if defined(__i386__) || defined(__sparc
 
 #define ADD_TO_T(c)  do {\
     *t++=c;\
-    if (t-target == talloced) {\
+    if ((DWORD)(t-target) == talloced) {\
         target = HeapReAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,target,talloced*2*sizeof(WCHAR));\
         t = target+talloced;\
         talloced*=2;\




More information about the wine-cvs mailing list