2008-10-01 Andrew Pinski <andrew_pinski@playstation.sony.com>
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Oct 2008 23:16:19 +0000 (23:16 +0000)
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Oct 2008 23:16:19 +0000 (23:16 +0000)
        * 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

libstdc++-v3/ChangeLog
libstdc++-v3/config/locale/generic/c_locale.cc

index 2ca3b9e..b6d6122 100644 (file)
@@ -1,3 +1,8 @@
+2008-10-01  Andrew Pinski  <andrew_pinski@playstation.sony.com>
+
+       * config/locale/generic/c_locale.cc (__convert_to_v): Fix
+       !__FLT_HAS_INFINITY__ case.
+
 2008-09-30  Chris Fairles  <cfairles@gcc.gnu.org>
 
        * include/std/tuple (tuple<>::swap): Implement swap for tuple as per 
index 67efd9e..97e77d5 100644 (file)
@@ -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();