mirror of
git://git.musl-libc.org/musl
synced 2025-03-31 23:58:56 +00:00
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.
This commit is contained in:
parent
63d40196b9
commit
3d649468c7
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user