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]

[v3] fix regression checker



Obvious.

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

	* config/locale/c_locale_generic.cc: Fix.

Index: config/locale/c_locale_generic.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/config/locale/c_locale_generic.cc,v
retrieving revision 1.4
diff -c -p -r1.4 c_locale_generic.cc
*** c_locale_generic.cc	2002/01/22 23:08:56	1.4
--- c_locale_generic.cc	2002/01/23 03:49:01
*************** namespace std 
*** 168,177 ****
            if (__sanity != __s && *__sanity == '\0' && errno == 0)
  	    __v = __ld;
  #else
! 	  typedef typename char_traits<_CharT>::int_type int_type;
  	  long double __ld;
  	  int __p = sscanf(__s, "%Lf", &__ld);
! 	  if (__p && static_cast<int_type>(__p) != char_traits<_CharT>::eof())
  	    __v = __ld;
  #endif
  	  else
--- 168,177 ----
            if (__sanity != __s && *__sanity == '\0' && errno == 0)
  	    __v = __ld;
  #else
! 	  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<char>::eof())
  	    __v = __ld;
  #endif
  	  else


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