This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [v3] libstdc++/5280
- From: Richard Henderson <rth at redhat dot com>
- To: Benjamin Kosnik <bkoz at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Tue, 22 Jan 2002 14:09:55 -0800
- Subject: Re: [v3] libstdc++/5280
- References: <200201222100.g0ML0l030137@fillmore.constant.com>
On Tue, Jan 22, 2002 at 01:00:47PM -0800, Benjamin Kosnik wrote:
> + // Stage 2: Determine a conversion specifier.
> + ios_base::fmtflags __basefield = __io.flags() & ios_base::basefield;
> + const char* __conv;
> + if (__basefield == ios_base::oct)
> + __conv = "%Lo";
> + else if (__basefield == ios_base::hex)
> + __conv = "%LX";
> + else if (__basefield == 0)
> + __conv = "%Li";
> + else
> + __conv = "%Lf";
All but the last are not appropriate for sscanf into a long double.
r~