summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam Jackson <ajax@nwnk.net>2006-04-12 20:26:35 +0000
committerAdam Jackson <ajax@nwnk.net>2006-04-12 20:26:35 +0000
commit72667a14fa330ef3b08dd72ab84ff09b164ff5ed (patch)
treee039da07884f463285ec7c4e64674c3648fcdf9d /src
parentf0a3923fe65abb04e64e3159b154f677e76423ca (diff)
Bug #6562: s/MAXSHORT/SHRT_MAX/ for POSIX. (Matthieu Herrb)
Diffstat (limited to 'src')
-rw-r--r--src/mga_arc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mga_arc.c b/src/mga_arc.c
index 6d08a13..00b0e54 100644
--- a/src/mga_arc.c
+++ b/src/mga_arc.c
@@ -29,7 +29,7 @@ in this Software without prior written authorization from The Open Group.
#include "config.h"
#endif
-#include <values.h>
+#include <limits.h>
#include <X11/X.h>
#include "gcstruct.h"
#include "windowstr.h"
@@ -215,7 +215,7 @@ MGAPolyArcThinSolid (
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) )
MGAZeroArc (pDraw, pGC, arc);
else