This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[v3] Fix typo in the new std::random code
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Mon, 06 Apr 2009 00:54:03 +0200
- Subject: [v3] Fix typo in the new std::random code
Hi,
committed to mainline.
Paolo.
///////////////////
2009-04-05 Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/random.tcc (piecewise_linear_distribution<>::
operator()(_UniformRandomNumberGenerator&, const param_type&)):
Remove spurious closed parenthesis.
Index: include/bits/random.tcc
===================================================================
--- include/bits/random.tcc (revision 145563)
+++ include/bits/random.tcc (working copy)
@@ -2595,7 +2595,7 @@
- 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;