Skip to content

Commit a6932f2

Browse files
authored
Merge pull request #3268 from stan-dev/minor-fix
minor change to use constant
2 parents 5df6fc5 + dc88b4c commit a6932f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stan/math/prim/fun/log1m_exp.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ inline double log1m_exp(double a) {
4949
using std::log;
5050
if (a > 0) {
5151
return NOT_A_NUMBER;
52-
} else if (a > -0.693147) {
52+
} else if (a > LOG_HALF) {
5353
return log(-expm1(a)); // 0.693147 ~= log(2)
5454
} else {
5555
return log1m(exp(a));

0 commit comments

Comments
 (0)