Skip to content

Commit 14bcaf6

Browse files
committed
Fix min/max usage
1 parent d8ba4b9 commit 14bcaf6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/boost/math/tools/config.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -784,8 +784,8 @@ template <class T>
784784
BOOST_MATH_GPU_ENABLED constexpr void gpu_safe_swap(T& a, T& b) { T t(a); a = b; b = t; }
785785

786786
#define BOOST_MATH_GPU_SAFE_SWAP(a, b) gpu_safe_swap(a, b)
787-
#define BOOST_MATH_GPU_SAFE_MIN(a, b) ::min(a, b)
788-
#define BOOST_MATH_GPU_SAFE_MAX(a, b) ::max(a, b)
787+
#define BOOST_MATH_GPU_SAFE_MIN(a, b) (::min)(a, b)
788+
#define BOOST_MATH_GPU_SAFE_MAX(a, b) (::max)(a, b)
789789

790790
#define BOOST_MATH_FP_NAN 0
791791
#define BOOST_MATH_FP_INFINITE 1

0 commit comments

Comments
 (0)