Skip to content

Commit ff74937

Browse files
committed
Wrong logic
1 parent cc5be30 commit ff74937

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

stan/math/prim/fun/lgamma.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* back. For details on the speed evaluations, please refer to
1313
* https://github.com/stan-dev/math/pull/1255 .
1414
*/
15-
#if !__MINGW32__ || !_BOOST_LGAMMA
15+
#if !__MINGW32__ && !_BOOST_LGAMMA
1616
// _REENTRANT must be defined during compilation to ensure that cmath
1717
// exports the reentrant safe lgamma_r version.
1818
#if !_REENTRANT
@@ -61,7 +61,7 @@ namespace math {
6161
* argument
6262
*/
6363
inline double lgamma(double x) {
64-
#if !__MINGW32__ || !_BOOST_LGAMMA
64+
#if !__MINGW32__ && !_BOOST_LGAMMA
6565
int sign = 1;
6666
return ::lgamma_r(x, &sign);
6767
#else
@@ -80,7 +80,7 @@ inline double lgamma(double x) {
8080
* argument
8181
*/
8282
inline double lgamma(int x) {
83-
#if !__MINGW32__ || !_BOOST_LGAMMA
83+
#if !__MINGW32__ && !_BOOST_LGAMMA
8484
int sign = 1;
8585
return ::lgamma_r(x, &sign);
8686
#else

0 commit comments

Comments
 (0)