summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@nwnk.net>2006-04-12 20:28:12 +0000
committerAdam Jackson <ajax@nwnk.net>2006-04-12 20:28:12 +0000
commit923e59983d60723a198fb8819eb67ff61f31f8c2 (patch)
treea33956905e8447ff019b3a727dcbf3b86f08fac0
parenta02507545b53ab20f6003c8771b800a6927c7106 (diff)
Bug #6563: s/MAXSHORT/SHRT_MAX/ for POSIX. (Matthieu Herrb)
-rw-r--r--ChangeLog5
-rw-r--r--src/newport_accel.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index ad44a61..3616cbb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-04-12 Adam Jackson <ajax@freedesktop.org>
+
+ * src/newport_accel.c:
+ Bug #6563: s/MAXSHORT/SHRT_MAX/ for POSIX. (Matthieu Herrb)
+
2006-04-07 Adam Jackson <ajax@freedesktop.org>
* configure.ac:
diff --git a/src/newport_accel.c b/src/newport_accel.c
index 404c59d..450c88a 100644
--- a/src/newport_accel.c
+++ b/src/newport_accel.c
@@ -11,7 +11,7 @@
#endif
#include "newport.h"
-#include <values.h>
+#include <limits.h>
#ifdef NEWPORT_ACCEL
@@ -1286,7 +1286,7 @@ NewportPolyArc(DrawablePtr pDraw,
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) )
miZeroPolyArc(pDraw, pGC, 1, arc);
}