Fri Oct 7 15:52:35 2016 UTC ()
CID 1373517: Integer handling issues: Parenthesize.


(christos)
diff -r1.7 -r1.8 xsrc/external/mit/libXrandr/dist/src/XrrProvider.c

cvs diff -r1.7 -r1.8 xsrc/external/mit/libXrandr/dist/src/XrrProvider.c (expand / switch to context diff)
--- xsrc/external/mit/libXrandr/dist/src/XrrProvider.c 2016/10/04 22:01:49 1.7
+++ xsrc/external/mit/libXrandr/dist/src/XrrProvider.c 2016/10/07 15:52:35 1.8
@@ -60,7 +60,7 @@
       return NULL;
     }
 
-    if (rep.length < INT_MAX >> 2) {
+    if (rep.length < (INT_MAX >> 2)) {
 	nbytes = (long) rep.length << 2;
 
 	nbytesRead = (long) (rep.nProviders * 4);
@@ -130,9 +130,9 @@
 	return NULL;
     }
 
-    if (rep.length > INT_MAX >> 2 || rep.length < ProviderInfoExtra >> 2)
+    if (rep.length > (INT_MAX >> 2) || rep.length < (ProviderInfoExtra >> 2))
     {
-	if (rep.length < ProviderInfoExtra >> 2)
+	if (rep.length < (ProviderInfoExtra >> 2))
 	    _XEatDataWords (dpy, rep.length);
 	else
 	    _XEatDataWords (dpy, rep.length - (ProviderInfoExtra >> 2));