diff options
author | Edward Smith-Rowland <emsr@gcc.gnu.org> | 2018-05-07 16:59:08 +0000 |
---|---|---|
committer | Edward Smith-Rowland <emsr@gcc.gnu.org> | 2018-05-07 16:59:08 +0000 |
commit | 6fa8c51f72ada5e467f5e3b9552ab22ef68dcfd3 (patch) | |
tree | 3fc931cc763df94f4f800f28b331fa9e9ed54f21 | |
parent | e5f1cdb1b045406fce27ff6552effbc42de91ed7 (diff) | |
download | gcc-6fa8c51f72ada5e467f5e3b9552ab22ef68dcfd3.zip gcc-6fa8c51f72ada5e467f5e3b9552ab22ef68dcfd3.tar.gz gcc-6fa8c51f72ada5e467f5e3b9552ab22ef68dcfd3.tar.bz2 |
Moar PR libstdc++/80506
2018-05-07 Edward Smith-Rowland <3dw4rd@verizon.net>
Moar PR libstdc++/80506
* include/bits/random.tcc (gamma_distribution::__generate_impl()):
Fix magic number used in loop condition.
Actually put the file in.
Don't know what my problem is today...
From-SVN: r260008
-rw-r--r-- | libstdc++-v3/include/bits/random.tcc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/include/bits/random.tcc b/libstdc++-v3/include/bits/random.tcc index 6db900c..f398150 100644 --- a/libstdc++-v3/include/bits/random.tcc +++ b/libstdc++-v3/include/bits/random.tcc @@ -2408,7 +2408,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION __v = __v * __v * __v; __u = __aurng(); } - while (__u > result_type(1.0) - 0.331 * __n * __n * __n * __n + while (__u > result_type(1.0) - 0.0331 * __n * __n * __n * __n && (std::log(__u) > (0.5 * __n * __n + __a1 * (1.0 - __v + std::log(__v))))); @@ -2429,7 +2429,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION __v = __v * __v * __v; __u = __aurng(); } - while (__u > result_type(1.0) - 0.331 * __n * __n * __n * __n + while (__u > result_type(1.0) - 0.0331 * __n * __n * __n * __n && (std::log(__u) > (0.5 * __n * __n + __a1 * (1.0 - __v + std::log(__v))))); |