Module Name:    xsrc
Committed By:   christos
Date:           Fri Feb  6 20:18:17 UTC 2015

Modified Files:
        xsrc/external/mit/xorg-server/dist/include: regionstr.h

Log Message:
fix previous.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 \
    xsrc/external/mit/xorg-server/dist/include/regionstr.h

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/xorg-server/dist/include/regionstr.h
diff -u xsrc/external/mit/xorg-server/dist/include/regionstr.h:1.3 xsrc/external/mit/xorg-server/dist/include/regionstr.h:1.4
--- xsrc/external/mit/xorg-server/dist/include/regionstr.h:1.3	Fri Feb  6 14:29:06 2015
+++ xsrc/external/mit/xorg-server/dist/include/regionstr.h	Fri Feb  6 15:18:17 2015
@@ -108,7 +108,7 @@ static inline BoxPtr RegionEnd(RegionPtr
 }
 
 static inline size_t RegionSizeof(int n) {
-    if (n < 0 || (size_t)n < ((INT_MAX - sizeof(RegDataRec)) / sizeof(BoxRec)))
+    if ((size_t)n < ((INT_MAX - sizeof(RegDataRec)) / sizeof(BoxRec)))
         return (sizeof(RegDataRec) + ((n) * sizeof(BoxRec)));
     else
         return 0;

Reply via email to