This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/48114] [C++0x] binomial_distribution incorrect for p > .5 and geometric_distribution wrongly implements the TR1 definition
- From: "paolo at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 14 Mar 2011 18:10:59 +0000
- Subject: [Bug libstdc++/48114] [C++0x] binomial_distribution incorrect for p > .5 and geometric_distribution wrongly implements the TR1 definition
- Auto-submitted: auto-generated
- References: <bug-48114-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48114
--- Comment #14 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2011-03-14 18:10:47 UTC ---
Author: paolo
Date: Mon Mar 14 18:10:36 2011
New Revision: 170950
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170950
Log:
2011-03-14 Andrey Zholos <aaz@althenia.net>
PR libstdc++/48114
* include/bits/random.tcc (binomial_distribution<>::operator()):
Fix thinko in computation, __param.p() is a double.
Modified:
branches/gcc-4_5-branch/libstdc++-v3/ChangeLog
branches/gcc-4_5-branch/libstdc++-v3/include/bits/random.tcc