This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [v3] libstdc++/5280


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]