Skip to content
Snippets Groups Projects
Commit b860e657 authored by Jonathan Wakely's avatar Jonathan Wakely
Browse files

Revert "libstdc++: Reuse double overload of __convert_to_v if possible"

This reverts commit aad83d61.

libstdc++-v3/ChangeLog:

	* config/locale/generic/c_locale.cc:
parent d82a85b6
No related branches found
No related tags found
No related merge requests found
...@@ -187,11 +187,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ...@@ -187,11 +187,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
__convert_to_v(const char* __s, long double& __v, __convert_to_v(const char* __s, long double& __v,
ios_base::iostate& __err, const __c_locale&) throw() ios_base::iostate& __err, const __c_locale&) throw()
{ {
#if __DBL_MANT_DIG__ == __LDBL_MANT_DIG__
double __d;
__convert_to_v(__s, __d, __err, __c_locale);
__v = __d;
#else
// Assumes __s formatted for "C" locale. // Assumes __s formatted for "C" locale.
const char* __sav = __set_C_locale(); const char* __sav = __set_C_locale();
if (!__sav) if (!__sav)
...@@ -238,7 +233,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ...@@ -238,7 +233,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
setlocale(LC_ALL, __sav); setlocale(LC_ALL, __sav);
delete [] __sav; delete [] __sav;
#endif // __DBL_MANT_DIG__ == __LDBL_MANT_DIG__
} }
void void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment