From: Rich Felker Date: Fri, 8 Jun 2012 15:11:44 +0000 (-0400) Subject: fix signedness errors in stdint.h constant macros X-Git-Tag: v0.9.2~45 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3d649468c7315d43aa99a44e882118d6872cb6ec;p=musl fix signedness errors in stdint.h constant macros the types of these expressions must match the integer promotions. unsigned 8- and 16-bit values promote to signed int, not unsigned int. --- diff --git a/include/stdint.h b/include/stdint.h index 54006678..7ca9d76b 100644 --- a/include/stdint.h +++ b/include/stdint.h @@ -90,8 +90,8 @@ typedef unsigned long long uintmax_t; #define INT32_C(c) c #define INT64_C(c) c ## LL -#define UINT8_C(c) c ## U -#define UINT16_C(c) c ## U +#define UINT8_C(c) c +#define UINT16_C(c) c #define UINT32_C(c) c ## U #define UINT64_C(c) c ## ULL