提交 3d649468 编写于 作者: R Rich Felker

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.
上级 63d40196
...@@ -90,8 +90,8 @@ typedef unsigned long long uintmax_t; ...@@ -90,8 +90,8 @@ typedef unsigned long long uintmax_t;
#define INT32_C(c) c #define INT32_C(c) c
#define INT64_C(c) c ## LL #define INT64_C(c) c ## LL
#define UINT8_C(c) c ## U #define UINT8_C(c) c
#define UINT16_C(c) c ## U #define UINT16_C(c) c
#define UINT32_C(c) c ## U #define UINT32_C(c) c ## U
#define UINT64_C(c) c ## ULL #define UINT64_C(c) c ## ULL
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册