Skip to content

Commit a251a5d

Browse files
committed
correction to #ifdef for long long
1 parent 434dfa4 commit a251a5d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.Rbuildignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ vignettes/jss.bst
66
debian
77
^.*\.Rproj$
88
^\.Rproj\.user$
9-
\.tar\.gz$
9+
.*\.tar\.gz$

inst/include/Eigen/src/Core/arch/CUDA/Half.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,17 +116,17 @@ struct half : public half_impl::half_base {
116116
EIGEN_DEVICE_FUNC EIGEN_EXPLICIT_CAST(long) const {
117117
return static_cast<long>(half_impl::half_to_float(*this));
118118
}
119-
#if EIGEN_HAS_CXX11
120119
EIGEN_DEVICE_FUNC EIGEN_EXPLICIT_CAST(unsigned long) const {
121120
return static_cast<unsigned long>(half_impl::half_to_float(*this));
122121
}
122+
#if EIGEN_HAS_CXX11
123123
EIGEN_DEVICE_FUNC EIGEN_EXPLICIT_CAST(long long) const {
124124
return static_cast<long long>(half_impl::half_to_float(*this));
125125
}
126-
#endif
127126
EIGEN_DEVICE_FUNC EIGEN_EXPLICIT_CAST(unsigned long long) const {
128127
return static_cast<unsigned long long>(half_to_float(*this));
129128
}
129+
#endif
130130
EIGEN_DEVICE_FUNC EIGEN_EXPLICIT_CAST(float) const {
131131
return half_impl::half_to_float(*this);
132132
}

0 commit comments

Comments
 (0)