[cfe-commits] r64007 - /cfe/trunk/lib/Headers/stdint.h

Chris Lattner sabre at nondot.org
Fri Feb 6 22:38:07 PST 2009


Author: lattner
Date: Sat Feb  7 00:38:06 2009
New Revision: 64007

URL: http://llvm.org/viewvc/llvm-project?rev=64007&view=rev
Log:
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.

Modified:
    cfe/trunk/lib/Headers/stdint.h

Modified: cfe/trunk/lib/Headers/stdint.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/stdint.h?rev=64007&r1=64006&r2=64007&view=diff

==============================================================================
--- cfe/trunk/lib/Headers/stdint.h (original)
+++ cfe/trunk/lib/Headers/stdint.h Sat Feb  7 00:38:06 2009
@@ -184,7 +184,7 @@
 /* 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





More information about the cfe-commits mailing list