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:
Benjamin Kosnik 2001-11-29 20:14:38 +00:00 committed by Benjamin Kosnik
parent 816a39741d
commit 004249997b
2 changed files with 7 additions and 2 deletions

View File

@ -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>
libstdc++/3655

View File

@ -647,11 +647,11 @@ namespace std
__conv = "%Lf";
// Stage 3: store results.
typedef typename __traits_type::int_type int_type;
typedef typename char_traits<_CharT>::int_type int_type;
long double __ld;
int __p = sscanf(__xtrc, __conv, &__ld);
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;
#endif
else