diff options
author | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-10-01 23:16:19 +0000 |
---|---|---|
committer | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-10-01 23:16:19 +0000 |
commit | f6b561c45e5bbba3316a77eac45a3b81ae631942 (patch) | |
tree | f1cab52b87004a944c65935e308ade3585c68dc3 /libstdc++-v3/config | |
parent | ff515a54ec0229947a28801160e09e215e96c299 (diff) | |
download | gcc-f6b561c45e5bbba3316a77eac45a3b81ae631942.tar.gz |
2008-10-01 Andrew Pinski <andrew_pinski@playstation.sony.com>
* config/locale/generic/c_locale.cc (__convert_to_v): Fix
!__FLT_HAS_INFINITY__ case.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@140823 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/config')
-rw-r--r-- | libstdc++-v3/config/locale/generic/c_locale.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libstdc++-v3/config/locale/generic/c_locale.cc b/libstdc++-v3/config/locale/generic/c_locale.cc index 67efd9e850f..97e77d57aa0 100644 --- a/libstdc++-v3/config/locale/generic/c_locale.cc +++ b/libstdc++-v3/config/locale/generic/c_locale.cc @@ -97,10 +97,11 @@ _GLIBCXX_BEGIN_NAMESPACE(std) else if (__overflow #if __FLT_HAS_INFINITY__ || __v == numeric_limits<float>::infinity() - || __v == -numeric_limits<float>::infinity()) + || __v == -numeric_limits<float>::infinity() #else || ((__v > 1.0f || __v < -1.0f) && errno == ERANGE) #endif + ) { if (__v > 0.0f) __v = numeric_limits<float>::max(); |