]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2014-08-13 Paolo Carlini <paolo.carlini@oracle.com>
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 13 Aug 2014 11:56:45 +0000 (11:56 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 13 Aug 2014 11:56:45 +0000 (11:56 +0000)
* Fix thinko in the last commit.

From-SVN: r213908

libstdc++-v3/ChangeLog
libstdc++-v3/include/ext/random.tcc

index 0f51eb493cfa0e5bb74905fb2ade42ede7d2032f..411bb1565f728d17cc452b65f3f54dd25dbc4995 100644 (file)
@@ -1,3 +1,7 @@
+2014-08-13  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * Fix thinko in the last commit.
+
 2014-08-13  Paolo Carlini  <paolo.carlini@oracle.com>
 
        PR libstdc++/62118
index 9aef359adc91e91025ed8db4499178bf53827c6e..88ce8218e8d42fc046f4201dcc70369beb21d645 100644 (file)
@@ -1611,7 +1611,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
          // accurate.
          auto __norm = std::hypot(__ret[0], __ret[1]);
 #else
-         auto __norm = std::sqrt(__ret[0] * __ret[0] + __ret[1] * __ret[1]);
+         auto __norm = std::sqrt(__sq);
 #endif
          __ret[0] /= __norm;
          __ret[1] /= __norm;