diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 10014eb2f76..69c63d7c38a 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2009-04-05 Paolo Carlini + + * include/bits/random.tcc (piecewise_linear_distribution<>:: + operator()(_UniformRandomNumberGenerator&, const param_type&)): + Remove spurious closed parenthesis. + 2009-04-05 Paolo Carlini PR libstdc++/39644 (partial) diff --git a/libstdc++-v3/include/bits/random.tcc b/libstdc++-v3/include/bits/random.tcc index bfd017a9934..b6a25434bf3 100644 --- a/libstdc++-v3/include/bits/random.tcc +++ b/libstdc++-v3/include/bits/random.tcc @@ -2595,7 +2595,7 @@ namespace std - 4.0 * __a * __c), __b)); #else + (__b < 0.0 ? -1.0 : 1.0) - * std::sqrt(__b * __b - 4.0 * __a * __c))); + * std::sqrt(__b * __b - 4.0 * __a * __c)); #endif const double __x0 = __param._M_int[__i]; const double __x1 = __q / __a;