c_locale_generic.cc: Fix.

2002-01-22  Benjamin Kosnik  <bkoz@redhat.com>

	* config/locale/c_locale_generic.cc: Fix.

From-SVN: r49125
This commit is contained in:
Benjamin Kosnik 2002-01-23 03:50:49 +00:00 committed by Benjamin Kosnik
parent 9d967a7e4d
commit 9b6e0e57a1
3 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2002-01-22 Benjamin Kosnik <bkoz@redhat.com>
* config/locale/c_locale_generic.cc: Fix.
2002-01-22 Benjamin Kosnik <bkoz@redhat.com>
* docs/html/22_locale/messages.html: Remove angle brackets.

View File

@ -168,10 +168,10 @@ namespace std
if (__sanity != __s && *__sanity == '\0' && errno == 0)
__v = __ld;
#else
typedef typename char_traits<_CharT>::int_type int_type;
typedef typename char_traits<char>::int_type int_type;
long double __ld;
int __p = sscanf(__s, "%Lf", &__ld);
if (__p && static_cast<int_type>(__p) != char_traits<_CharT>::eof())
if (__p && static_cast<int_type>(__p) != char_traits<char>::eof())
__v = __ld;
#endif
else

View File

@ -1,6 +1,7 @@
// Output streams -*- C++ -*-
// Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002
// Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@ -50,7 +51,6 @@ namespace std
class basic_ostream : virtual public basic_ios<_CharT, _Traits>
{
public:
// Types (inherited from basic_ios (27.4.4)):
typedef _CharT char_type;
typedef typename _Traits::int_type int_type;