From: Erik van der Kouwe Date: Wed, 2 Dec 2009 15:35:09 +0000 (+0000) Subject: Specify types for integer MAX constants X-Git-Tag: v3.1.6~177 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/addsub.png?a=commitdiff_plain;h=9a10c6c62002083da9bc0e60bc31b0a62e767999;p=minix.git Specify types for integer MAX constants --- diff --git a/include/stdint.h b/include/stdint.h index 77ae1a076..329fde88b 100644 --- a/include/stdint.h +++ b/include/stdint.h @@ -107,14 +107,14 @@ typedef unsigned long uintmax_t; #define INT16_MAX 32767 #define INT32_MAX 2147483647 #if _WORD_SIZE > 2 && __L64 -#define INT64_MAX 9223372036854775807 +#define INT64_MAX 9223372036854775807LL #endif #define UINT8_MAX 255 #define UINT16_MAX 65535 -#define UINT32_MAX 4294967295 +#define UINT32_MAX 4294967295U #if _WORD_SIZE > 2 && __L64 -#define UINT64_MAX 18446744073709551615 +#define UINT64_MAX 18446744073709551615ULL #endif #define INT_LEAST8_MIN INT8_MIN