Skip to content

Commit 64dc287

Browse files
author
maechler
committed
typo
git-svn-id: https://svn.r-project.org/R/trunk@88186 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 7ee5826 commit 64dc287

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/nmath/dbinom.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,10 @@ double pow1p(double x, double y)
6363
volatile double xp1 = x + 1., x_ = xp1 - 1.; // compiler should *not* optimize these
6464
if (x_ == x || fabs(x) > 0.5 || isnan(x)) {
6565
return pow(xp1, y);
66-
else /* not perfect, e.g., for small |x|, non-huge y, use
66+
} else { /* not perfect, e.g., for small |x|, non-huge y, use
6767
binom expansion 1 + y*x + y(y-1)/2 x^2 + .. */
6868
return exp(y * log1p(x));
69+
}
6970
}
7071

7172
double dbinom_raw(double x, double n, double p, double q, int give_log)

0 commit comments

Comments
 (0)