diff options
author | Adam Jackson <ajax@nwnk.net> | 2006-04-12 20:26:35 +0000 |
---|---|---|
committer | Adam Jackson <ajax@nwnk.net> | 2006-04-12 20:26:35 +0000 |
commit | 72667a14fa330ef3b08dd72ab84ff09b164ff5ed (patch) | |
tree | e039da07884f463285ec7c4e64674c3648fcdf9d | |
parent | f0a3923fe65abb04e64e3159b154f677e76423ca (diff) |
Bug #6562: s/MAXSHORT/SHRT_MAX/ for POSIX. (Matthieu Herrb)
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/mga_arc.c | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2006-04-12 Adam Jackson <ajax@freedesktop.org> + + * src/mga_arc.c: + Bug #6562: s/MAXSHORT/SHRT_MAX/ for POSIX. (Matthieu Herrb) + 2006-04-07 Adam Jackson <ajax@freedesktop.org> * configure.ac: 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 |