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.
This commit is contained in:
parent
9448b0513e
commit
c4dd0c98ba
9 changed files with 10 additions and 10 deletions
|
|
@ -16,7 +16,7 @@ TYPEDEF __WCHAR_TYPE__ wchar_t;
|
|||
TYPEDEF long wchar_t;
|
||||
#endif
|
||||
#endif
|
||||
TYPEDEF long wint_t;
|
||||
TYPEDEF unsigned wint_t;
|
||||
|
||||
#if defined(__FLT_EVAL_METHOD__) && __FLT_EVAL_METHOD__ == 0
|
||||
TYPEDEF float float_t;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue