svn commit: r302601 - in head/sys: arm/include arm64/include [__WCHAR_MAX definition mostly]
Andrey Chernov
ache at freebsd.org
Tue Jul 12 03:58:03 UTC 2016
On 12.07.2016 5:44, Mark Millard wrote:
> My understanding of the criteria for __WCHAR_MIN and __WCHAR_MAX:
>
> A) __WCHAR_MIN and __WCHAR_MAX: same type as the integer promotion of
> ___wchar_t (if that is distinct).
> B) __WCHAR_MIN is the low value for ___wchar_t as an integer type; not
> necessarily a valid char value
> C) __WCHAR_MAX is the high value for ___wchar_t as an integer type; not
> necessarily a valid char value
It seems you are right about "not a valid char value", I'll back this
change out.
> As far as I know arm FreeBSD uses unsigned character types (of whatever
> width).
Probably it should be unsigned for other architectures too, clang does
not generate negative values with L'<char>' literals and locale use only
positive values too.
More information about the freebsd-current
mailing list