summaryrefslogtreecommitdiff
path: root/cfb/cfbfillarc.c
diff options
context:
space:
mode:
Diffstat (limited to 'cfb/cfbfillarc.c')
-rw-r--r--cfb/cfbfillarc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cfb/cfbfillarc.c b/cfb/cfbfillarc.c
index 6fb6bb728..797e9ea78 100644
--- a/cfb/cfbfillarc.c
+++ b/cfb/cfbfillarc.c
@@ -31,6 +31,8 @@ in this Software without prior written authorization from The Open Group.
#include <dix-config.h>
#endif
+#include <sys/limits.h>
+
#include <X11/X.h>
#include <X11/Xprotostr.h>
#include "regionstr.h"
@@ -358,7 +360,7 @@ RROP_NAME(cfbPolyFillArcSolid) (pDraw, pGC, narcs, parcs)
box.x2 = x2;
y2 = box.y1 + (int)arc->height + 1;
box.y2 = y2;
- if ( (x2 <= MAXSHORT) && (y2 <= MAXSHORT) &&
+ if ( (x2 <= SHRT_MAX) && (y2 <= SHRT_MAX) &&
(RECT_IN_REGION(pDraw->pScreen, cclip, &box) == rgnIN) )
{
if ((arc->angle2 >= FULLCIRCLE) ||