# HG changeset patch # User ipse.c99@d525d15b-5824-0410-80a3-6185d19c2cde # Date 1182862403 0 # Node ID 5ce8bdb1369f39955a0d9fd86ff5bf1486b6a540 # Parent f831bbea34012e7a6c61f842580bcb006130de8d Better handling of (U)INTx_C macros - now they generate constants of exact width. diff --git a/stdint.h b/stdint.h --- a/stdint.h +++ b/stdint.h @@ -202,15 +202,15 @@ typedef uint64_t uintmax_t; // 7.18.4.1 Macros for minimum-width integer constants -#define INT8_C(val) val -#define INT16_C(val) val -#define INT32_C(val) val##L +#define INT8_C(val) val##i8 +#define INT16_C(val) val##i16 +#define INT32_C(val) val##i32 #define INT64_C(val) val##i64 -#define UINT8_C(val) val -#define UINT16_C(val) val -#define UINT32_C(val) val##UL -#define UINT64_C(val) val##Ui64 +#define UINT8_C(val) val##ui8 +#define UINT16_C(val) val##ui16 +#define UINT32_C(val) val##ui32 +#define UINT64_C(val) val##ui64 // 7.18.4.2 Macros for greatest-width integer constants #define INTMAX_C INT64_C