[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: importing regex changes from libc
From: |
Eric Blake |
Subject: |
Re: importing regex changes from libc |
Date: |
Fri, 11 Aug 2006 17:25:13 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Paul Eggert <eggert <at> CS.UCLA.EDU> writes:
> --- lib/regex_internal.c 10 Apr 2006 06:43:33 -0000 1.20
> +++ lib/regex_internal.c 10 Aug 2006 20:05:48 -0000
> <at> <at> -488,7 +488,7 <at> <at> re_string_skip_chars (re_string_t
*pstr,
> mbstate_t prev_st;
> Idx rawbuf_idx;
> size_t mbclen;
> - wchar_t wc = 0;
> + wchar_t wc = WEOF;
This is broken on cygwin, where wchar_t is 2 bytes but wint_t is 4 bytes.
In file included from ../../gnu/regex.c:62:
../../gnu/regex_internal.c: In function `re_string_skip_chars':
../../gnu/regex_internal.c:491: warning: large integer implicitly truncated to
unsigned type
But I don't have a fix yet (just changing wc to type wint_t won't work).
--
Eric Blake