summaryrefslogtreecommitdiffhomepage
path: root/eigen/unsupported/Eigen/src/SpecialFunctions
diff options
context:
space:
mode:
Diffstat (limited to 'eigen/unsupported/Eigen/src/SpecialFunctions')
-rw-r--r--eigen/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/eigen/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/eigen/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index 369ad97..f524d71 100644
--- a/eigen/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/eigen/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -122,8 +122,8 @@ struct lgamma_impl<float> {
EIGEN_DEVICE_FUNC
static EIGEN_STRONG_INLINE float run(float x) {
#if !defined(__CUDA_ARCH__) && (defined(_BSD_SOURCE) || defined(_SVID_SOURCE)) && !defined(__APPLE__)
- int dummy;
- return ::lgammaf_r(x, &dummy);
+ int signgam;
+ return ::lgammaf_r(x, &signgam);
#else
return ::lgammaf(x);
#endif
@@ -135,8 +135,8 @@ struct lgamma_impl<double> {
EIGEN_DEVICE_FUNC
static EIGEN_STRONG_INLINE double run(double x) {
#if !defined(__CUDA_ARCH__) && (defined(_BSD_SOURCE) || defined(_SVID_SOURCE)) && !defined(__APPLE__)
- int dummy;
- return ::lgamma_r(x, &dummy);
+ int signgam;
+ return ::lgamma_r(x, &signgam);
#else
return ::lgamma(x);
#endif