[PATCH] mark some signed entities as LONG

Marcus Meissner marcus at jet.franken.de
Sun Feb 17 06:31:59 CST 2008


Hi,

The compiler complained about <0 checks, but these
were probably right this time.

Not sure about the others, if they can ever go below 0.

Ciao, Marcus
---
 dlls/wintab32/context.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/wintab32/context.c b/dlls/wintab32/context.c
index 609ec22..9fdfe67 100644
--- a/dlls/wintab32/context.c
+++ b/dlls/wintab32/context.c
@@ -157,8 +157,8 @@ int TABLET_PostTabletMessage(LPOPENCONTEXT newcontext, UINT msg, WPARAM wParam,
     return 0;
 }
 
-static inline DWORD ScaleForContext(DWORD In, DWORD InOrg, DWORD InExt, DWORD
-                                    OutOrg, DWORD OutExt)
+static inline DWORD ScaleForContext(DWORD In, DWORD InOrg, LONG InExt, DWORD
+                                    OutOrg, LONG OutExt)
 {
     if (((InExt > 0 )&&(OutExt > 0)) || ((InExt<0) && (OutExt < 0)))
         return ((In - InOrg) * abs(OutExt) / abs(InExt)) + OutOrg;
-- 
1.5.2.4



More information about the wine-patches mailing list