Files
loongoffice/external/boost/boost.random.Wuninitialized.patch
Michael Stahl ce4817130c boost: rename boost.wuninitialized.patch
Change-Id: Ic82f00a9750dc4f15207474a5cf4873e620198a3
2014-04-14 17:42:27 +02:00

11 lines
450 B
Diff

--- foo/foo/foo/boost/random/binomial_distribution.hpp
+++ foo/foo/foo/boost/random/binomial_distribution.hpp
@@ -278,6 +278,7 @@
m = static_cast<IntType>((t_lcl+1)*p_lcl);
if(use_inversion()) {
+ btrd.r = btrd.nr = btrd.npq = btrd.b = btrd.a = btrd.c = btrd.alpha = btrd.v_r = btrd.u_rv_r = 0;
q_n = pow((1 - p_lcl), static_cast<RealType>(t_lcl));
} else {
btrd.r = p_lcl/(1-p_lcl);