musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/include/stdint.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013年07月22日 13:05:41 -0400
committerRich Felker <dalias@aerifal.cx>2013年07月22日 13:05:41 -0400
commitc4dd0c98bae8e3583f68ba5b30db491055ab2322 (patch)
tree7b64cb99e6bc4cc9faff8207d8f78a5e72fb58d2 /include/stdint.h
parent9448b0513e2eec020fbca9c10412b83df5027a16 (diff)
downloadmusl-c4dd0c98bae8e3583f68ba5b30db491055ab2322.tar.gz
change wint_t to unsigned
aside from the obvious C++ ABI purpose for this change, it also brings musl into alignment with the compiler's idea of the definition of wint_t (use in -Wformat), and makes the situation less awkward on ARM, where wchar_t is unsigned. internal code using wint_t and WEOF was checked against this change, and while a few cases of storing WEOF into wchar_t were found, they all seem to operate properly with the natural conversion from unsigned to signed.
Diffstat (limited to 'include/stdint.h')
-rw-r--r--include/stdint.h 4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/stdint.h b/include/stdint.h
index a783ad96..ad6aaead 100644
--- a/include/stdint.h
+++ b/include/stdint.h
@@ -78,8 +78,8 @@ typedef uint64_t uint_least64_t;
#define INTMAX_MAX INT64_MAX
#define UINTMAX_MAX UINT64_MAX
-#define WINT_MIN INT32_MIN
-#define WINT_MAX INT32_MAX
+#define WINT_MIN 0
+#define WINT_MAX UINT32_MAX
#if L'0円'-1 > 0
#define WCHAR_MAX (0xffffffffu+L'0円')
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月02日 12:02:50 +0000

AltStyle によって変換されたページ (->オリジナル) /