projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63d4019
)
fix signedness errors in stdint.h constant macros
author
Rich Felker
<dalias@aerifal.cx>
Fri, 8 Jun 2012 15:11:44 +0000
(11:11 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Fri, 8 Jun 2012 15:11:44 +0000
(11:11 -0400)
the types of these expressions must match the integer promotions.
unsigned 8- and 16-bit values promote to signed int, not unsigned int.
include/stdint.h
patch
|
blob
|
history
diff --git
a/include/stdint.h
b/include/stdint.h
index 540066780166d7a4435ebdebf46d97e707925409..7ca9d76bcf92f72d2694a9e49d49ec830a7d9b66 100644
(file)
--- 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