This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [PATCH] Update newlib so that it passes libc++'s tests
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: JF Bastien <jfb at chromium dot org>
- Cc: "newlib at sourceware dot org" <newlib at sourceware dot org>
- Date: Wed, 18 Dec 2013 22:18:48 +0000
- Subject: Re: [PATCH] Update newlib so that it passes libc++'s tests
- Authentication-results: sourceware.org; auth=none
- References: <CABdywOcnSpU=r5NGDDzhea4gxALh8LRL4A9vRY31wFjLhtF5zA at mail dot gmail dot com> <Pine dot LNX dot 4 dot 64 dot 1312170153500 dot 29265 at digraph dot polyomino dot org dot uk> <CABdywOdE5rkMLOyK3NrM+k+OrpRLkbjPp5oddqDz9vv5wKkd0A at mail dot gmail dot com>
On Wed, 18 Dec 2013, JF Bastien wrote:
> #elif defined(__WCHAR_UNSIGNED__) || (L'\0' - 1 > 0)
> #define WCHAR_MAX (0xffffffffu + L'\0')
> #else
> #define WCHAR_MAX (0x7fffffffu + L'\0')
You don't want the "u" suffix in this #else case (signed wchar_t).
--
Joseph S. Myers
joseph@codesourcery.com