summaryrefslogtreecommitdiff
path: root/mfb/mfbzerarc.c
diff options
context:
space:
mode:
Diffstat (limited to 'mfb/mfbzerarc.c')
-rw-r--r--mfb/mfbzerarc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mfb/mfbzerarc.c b/mfb/mfbzerarc.c
index 92fd81dfb..cc45ee2d4 100644
--- a/mfb/mfbzerarc.c
+++ b/mfb/mfbzerarc.c
@@ -37,6 +37,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"
@@ -246,7 +248,7 @@ mfbZeroPolyArcSS(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) )
mfbZeroArcSS(pDraw, pGC, arc);
else