diff options
-rw-r--r-- | numpy/random/mtrand/distributions.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/random/mtrand/distributions.c b/numpy/random/mtrand/distributions.c index 6d9a23ced..84174e105 100644 --- a/numpy/random/mtrand/distributions.c +++ b/numpy/random/mtrand/distributions.c @@ -42,6 +42,7 @@ */ #include <math.h> +#include <stdlib.h> #include "distributions.h" #include <stdio.h> @@ -315,7 +316,7 @@ long rk_binomial_btpe(rk_state *state, long n, double p) v = v*(u-p3)*lamr; Step50: - k = fabs(y - m); + k = labs(y - m); if ((k > 20) && (k < ((nrq)/2.0 - 1))) goto Step52; s = r/q; |