locale_facets.tcc (num_get::do_get(long double)): Fix __traits_type typo.
2001-11-29 Benjamin Kosnik <bkoz@redhat.com> * include/bits/locale_facets.tcc (num_get::do_get(long double)): Fix __traits_type typo. From-SVN: r47449
This commit is contained in:
parent
816a39741d
commit
004249997b
@ -1,3 +1,8 @@
|
|||||||
|
2001-11-29 Benjamin Kosnik <bkoz@redhat.com>
|
||||||
|
|
||||||
|
* include/bits/locale_facets.tcc (num_get::do_get(long double)):
|
||||||
|
Fix __traits_type typo.
|
||||||
|
|
||||||
2001-11-28 Paolo Carlini <pcarlini@unitus.it>
|
2001-11-28 Paolo Carlini <pcarlini@unitus.it>
|
||||||
|
|
||||||
libstdc++/3655
|
libstdc++/3655
|
||||||
|
@ -647,11 +647,11 @@ namespace std
|
|||||||
__conv = "%Lf";
|
__conv = "%Lf";
|
||||||
|
|
||||||
// Stage 3: store results.
|
// Stage 3: store results.
|
||||||
typedef typename __traits_type::int_type int_type;
|
typedef typename char_traits<_CharT>::int_type int_type;
|
||||||
long double __ld;
|
long double __ld;
|
||||||
int __p = sscanf(__xtrc, __conv, &__ld);
|
int __p = sscanf(__xtrc, __conv, &__ld);
|
||||||
if (!(__err & ios_base::failbit) && __p
|
if (!(__err & ios_base::failbit) && __p
|
||||||
&& static_cast<int_type>(__p) != __traits_type::eof())
|
&& static_cast<int_type>(__p) != char_traits<_CharT>::eof())
|
||||||
__v = __ld;
|
__v = __ld;
|
||||||
#endif
|
#endif
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user