From 8d00dcb29d65f25f1c76aef057be40a2d6c899db Mon Sep 17 00:00:00 2001 From: Temir Date: Mon, 24 Aug 2020 15:25:50 +0300 Subject: [PATCH] Proper suffixes added DMC fails with an error "Lexical error: number is not representable", when trying to compile code using 64-bit constants INT64_MAX, UINT64_MAX, etc. --- include/stdint.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/stdint.h b/include/stdint.h index c476e9d..e796989 100644 --- a/include/stdint.h +++ b/include/stdint.h @@ -127,16 +127,16 @@ typedef unsigned long long uint_fast64_t; #if __LONGLONG #define INT64_MIN (-9223372036854775807LL-1LL) -#define INT64_MAX 9223372036854775807 -#define UINT64_MAX 18446744073709551615 +#define INT64_MAX 9223372036854775807LL +#define UINT64_MAX 18446744073709551615ULL #define INT_LEAST64_MIN (-9223372036854775807LL-1LL) -#define INT_LEAST64_MAX 9223372036854775807 -#define UINT_LEAST64_MAX 18446744073709551615 +#define INT_LEAST64_MAX 9223372036854775807LL +#define UINT_LEAST64_MAX 18446744073709551615ULL #define INT_FAST64_MIN (-9223372036854775807LL-1LL) -#define INT_FAST64_MAX 9223372036854775807 -#define UINT_FAST64_MAX 18446744073709551615 +#define INT_FAST64_MAX 9223372036854775807LL +#define UINT_FAST64_MAX 18446744073709551615ULL #endif @@ -152,8 +152,8 @@ typedef unsigned long long uint_fast64_t; #if __LONGLONG #define INTMAX_MIN (-9223372036854775807LL-1LL) -#define INTMAX_MAX 9223372036854775807 -#define UINTMAX_MAX 18446744073709551615 +#define INTMAX_MAX 9223372036854775807LL +#define UINTMAX_MAX 18446744073709551615ULL #define INTMAX_C(v) __EXPAND(__EXPAND(v)##LL) #define UINTMAX_C(v) __EXPAND(__EXPAND(v)##ULL) #else