This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
Re: [patchlet] Re: <sstream> bug?
On 12 Jul 2000 at 00:06 (-0400), brent verner wrote:
| On 11 Jul 2000 at 23:55 (-0400), brent verner wrote:
| |
| | oh hell, here's a patch that should do it... for int& anyway :)
this does not fix the problem.
Brent
| sorry :\ i'm dreary again.
|
| a patch that compiles. really. If this works, and I get a go ahead
| for this solution, I'll do the same for other types.
|
| Brent (wearing the pointy cap, in the corner)
|
|
| Index: locale_facets.tcc
| ===================================================================
| RCS file: /cvs/gcc/egcs/libstdc++-v3/bits/locale_facets.tcc,v
| retrieving revision 1.7
| diff -c -p -3 -r1.7 locale_facets.tcc
| *** locale_facets.tcc 2000/07/04 02:24:54 1.7
| --- locale_facets.tcc 2000/07/12 04:02:54
| *************** namespace std
| *** 707,714 ****
| long __l = strtol(__xtrc, &__sanity, __base);
| if (!(__err & ios_base::failbit)
| && __sanity != __xtrc && *__sanity == '\0' && errno == 0
| ! && __l >= INT_MIN && __l <= INT_MAX)
| __v = static_cast<int>(__l);
| else
| __err |= ios_base::failbit;
|
| --- 707,716 ----
| long __l = strtol(__xtrc, &__sanity, __base);
| if (!(__err & ios_base::failbit)
| && __sanity != __xtrc && *__sanity == '\0' && errno == 0
| ! && __l >= INT_MIN && __l <= INT_MAX){
| __v = static_cast<int>(__l);
| + __err = ios_base::goodbit;
| + }
| else
| __err |= ios_base::failbit;
|
--
Damon Brent Verner o _ _ _
Cracker Jack? Surprise Certified _o /\_ _ \\o (_)\__/o (_)
brent@rcfile.org _< \_ _>(_) (_)/<_ \_| \ _|/' \/
brent@linux1.org (_)>(_) (_) (_) (_) (_)' _\o_