PATCH: wintab/context C construct
Marcus Meissner
marcus at jet.franken.de
Sun Aug 1 04:14:39 CDT 2004
Hi,
I am not sure what the original author (Aric?) wanted to do here, but
since he does not react to mail, I have a fix which looks likely.
Fixes gcc 3.5 warning:
context.c: In function `WTDataGet':
context.c:743: warning: comparisons like X<=Y<=Z do not have their mathematical meaning
Ciao, Marcus
Changelog:
Replaced incorrect C comparison construct.
Index: dlls/wintab32/context.c
===================================================================
RCS file: /home/wine/wine/dlls/wintab32/context.c,v
retrieving revision 1.3
diff -u -r1.3 context.c
--- dlls/wintab32/context.c 9 Jan 2004 00:03:00 -0000 1.3
+++ dlls/wintab32/context.c 1 Aug 2004 09:12:44 -0000
@@ -740,7 +740,7 @@
context->PacketQueue[end].pkSerialNumber != wEnd)
end++;
- if (bgn == end == context->PacketsQueued)
+ if ((bgn == end) && (end == context->PacketsQueued))
{
LeaveCriticalSection(&csTablet);
return 0;
--
More information about the wine-patches
mailing list