Commit 429e4fde by Paolo Carlini Committed by Paolo Carlini

2014-08-13 Paolo Carlini <paolo.carlini@oracle.com>

	* Fix thinko in the last commit.

From-SVN: r213908
parent a3ee8851
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.
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment