Fix UINT8_C and UINT16_C. See 7.18.2 ... according to the integer promotions git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@1163 4407c894-4637-0410-b4f5-ada5f102cad1
diff --git a/mingw-w64-headers/include/stdint.h b/mingw-w64-headers/include/stdint.h index a593c20..af68e2f 100644 --- a/mingw-w64-headers/include/stdint.h +++ b/mingw-w64-headers/include/stdint.h
@@ -195,9 +195,9 @@ suffix, (val) will be evaluated as int, not intmax_t */ #define INT64_C(val) val##LL -#define UINT8_C(val) (UINT_LEAST8_MAX-UINT_LEAST8_MAX+(val)) -#define UINT16_C(val) (UINT_LEAST16_MAX-UINT_LEAST16_MAX+(val)) -#define UINT32_C(val) (UINT_LEAST32_MAX-UINT_LEAST32_MAX+(val)) +#define UINT8_C(val) (val) +#define UINT16_C(val) (val) +#define UINT32_C(val) (val##U) #define UINT64_C(val) val##ULL /* 7.18.4.2 Macros for greatest-width integer constants */