This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]