From d92f356f8dd3179f9307c56d27e87d1f1138bb19 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Sat, 19 Dec 2015 02:12:15 -0500 Subject: [PATCH] probably fix compile error --- src/Probability.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Probability.cpp b/src/Probability.cpp index 2df8572fd..ac5970fc0 100644 --- a/src/Probability.cpp +++ b/src/Probability.cpp @@ -37,7 +37,7 @@ SmallKBinomialGenerator::SmallKBinomialGenerator(unsigned int n, float p, unsign float *pdf = new float[maxK]; // initial values, k=0: - float pTerm = std::pow(1.0f-p, n); // the p^k * (1-p)^(n-k) term + float pTerm = std::pow(1.0f-p, static_cast(n)); // the p^k * (1-p)^(n-k) term unsigned int coeffN = 1, coeffD = 1; // (N / D) evaluates to the same result as the n!/(k!(n-k)!) term for (unsigned int k=0; k