summaryrefslogtreecommitdiff
path: root/include/stdint.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-06-08 11:11:44 -0400
committerRich Felker <dalias@aerifal.cx>2012-06-08 11:11:44 -0400
commit3d649468c7315d43aa99a44e882118d6872cb6ec (patch)
treefeba3a132c42b55dc92d59b460267835851df573 /include/stdint.h
parent63d40196b91df8937424cfa4495e8991c5a20827 (diff)
downloadmusl-3d649468c7315d43aa99a44e882118d6872cb6ec.tar.gz
musl-3d649468c7315d43aa99a44e882118d6872cb6ec.tar.bz2
musl-3d649468c7315d43aa99a44e882118d6872cb6ec.tar.xz
musl-3d649468c7315d43aa99a44e882118d6872cb6ec.zip
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.
Diffstat (limited to 'include/stdint.h')
-rw-r--r--include/stdint.h4
1 files changed, 2 insertions, 2 deletions
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