Module Name:    xsrc
Committed By:   christos
Date:           Fri Oct  7 15:52:35 UTC 2016

Modified Files:
        xsrc/external/mit/libXrandr/dist/src: XrrProvider.c

Log Message:
CID 1373517: Integer handling issues: Parenthesize.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 xsrc/external/mit/libXrandr/dist/src/XrrProvider.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/libXrandr/dist/src/XrrProvider.c
diff -u xsrc/external/mit/libXrandr/dist/src/XrrProvider.c:1.7 xsrc/external/mit/libXrandr/dist/src/XrrProvider.c:1.8
--- xsrc/external/mit/libXrandr/dist/src/XrrProvider.c:1.7	Tue Oct  4 18:01:49 2016
+++ xsrc/external/mit/libXrandr/dist/src/XrrProvider.c	Fri Oct  7 11:52:35 2016
@@ -60,7 +60,7 @@ XRRGetProviderResources(Display *dpy, Wi
       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 @@ XRRGetProviderInfo(Display *dpy, XRRScre
 	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));

Reply via email to