diff options
author | Adam Jackson <ajax@nwnk.net> | 2006-04-12 20:28:12 +0000 |
---|---|---|
committer | Adam Jackson <ajax@nwnk.net> | 2006-04-12 20:28:12 +0000 |
commit | 923e59983d60723a198fb8819eb67ff61f31f8c2 (patch) | |
tree | a33956905e8447ff019b3a727dcbf3b86f08fac0 | |
parent | a02507545b53ab20f6003c8771b800a6927c7106 (diff) |
Bug #6563: s/MAXSHORT/SHRT_MAX/ for POSIX. (Matthieu Herrb)
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/newport_accel.c | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -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); } |