[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [patches] RFC: Fix values of WCHAR_MIN and WCHAR_MAX
- To: Jim Blandy <jimb@xxxxxxxxxxxxxxxx>
- Subject: Re: [patches] RFC: Fix values of WCHAR_MIN and WCHAR_MAX
- From: "Joseph S. Myers" <joseph@xxxxxxxxxxxxxxxx>
- Date: Fri, 28 Sep 2007 21:43:05 +0000 (UTC)
On Fri, 28 Sep 2007, Jim Blandy wrote:
> +#ifdef __WCHAR_UNSIGNED__
> +#define WCHAR_MIN 0
> +
> +/* Failing that, rely on the preprocessor's knowledge of the
> + signedness of wchar_t. */
> +#elif L'\0' - 1 > 0
> +#define WCHAR_MIN 0
Both these values of WCHAR_MIN should be L'\0' not plain 0, so they have
the correct (unsigned) type. It looks correct with that change.
--
Joseph S. Myers
joseph@xxxxxxxxxxxxxxxx