summaryrefslogtreecommitdiff
path: root/mfb/mfbfillarc.c
diff options
context:
space:
mode:
Diffstat (limited to 'mfb/mfbfillarc.c')
-rw-r--r--mfb/mfbfillarc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mfb/mfbfillarc.c b/mfb/mfbfillarc.c
index a5442896f..8856eb0ae 100644
--- a/mfb/mfbfillarc.c
+++ b/mfb/mfbfillarc.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"
@@ -317,7 +319,7 @@ mfbPolyFillArcSolid(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) ||