make sure that UINTMAX_MAX has an unsigned type. This assumes that

uintmax_t is unsigned long long, which is not optimal, but is assumed 
elsewhere already.

llvm-svn: 64007
This commit is contained in:
Chris Lattner 2009-02-07 06:38:06 +00:00
parent 6bda45cec0
commit 5455db4273
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ typedef __UINTMAX_TYPE__ uintmax_t;
/* C99 7.18.2.5 Limits of greatest-width integer types. */
#define INTMAX_MIN (-__INTMAX_MAX__-1)
#define INTMAX_MAX __INTMAX_MAX__
#define UINTMAX_MAX (__INTMAX_MAX__*2+1)
#define UINTMAX_MAX (__INTMAX_MAX__*2ULL+1ULL)
/* C99 7.18.3 Limits of other integer types. */
#define SIG_ATOMIC_MIN INT32_MIN