From c4dd0c98bae8e3583f68ba5b30db491055ab2322 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 22 Jul 2013 13:05:41 -0400 Subject: 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. --- arch/i386/bits/alltypes.h.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch/i386') diff --git a/arch/i386/bits/alltypes.h.in b/arch/i386/bits/alltypes.h.in index ea6471ed..04fd1cb4 100644 --- a/arch/i386/bits/alltypes.h.in +++ b/arch/i386/bits/alltypes.h.in @@ -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; -- cgit v1.2.1