* Fix thinko in the last commit.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213908
138bc75d-0d04-0410-961f-
82ee72b054a4
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
* include/ext/random.tcc (uniform_on_sphere_helper<2, _RealType>::
operator()): Use std::hypot only when _GLIBCXX_USE_C99_MATH_TR1.
// 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;