Module Name:    xsrc
Committed By:   snj
Date:           Tue Apr 14 05:04:28 UTC 2015

Modified Files:
        xsrc/external/mit/xorg-server/dist/include [netbsd-7]: regionstr.h

Log Message:
Pull up following revision(s) (requested by christos in ticket #681):
        external/mit/xorg-server/dist/include/regionstr.h: revisions 1.3, 1.4
fix signed/unsigned comparison.
--
fix previous.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.3.10.2 -r1.1.1.3.10.3 \
    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.1.1.3.10.2 xsrc/external/mit/xorg-server/dist/include/regionstr.h:1.1.1.3.10.3
--- xsrc/external/mit/xorg-server/dist/include/regionstr.h:1.1.1.3.10.2	Mon Mar  9 08:38:43 2015
+++ xsrc/external/mit/xorg-server/dist/include/regionstr.h	Tue Apr 14 05:04:28 2015
@@ -108,7 +108,7 @@ static inline BoxPtr RegionEnd(RegionPtr
 }
 
 static inline size_t RegionSizeof(int n) {
-    if (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