We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f73e06 commit 8c3f849Copy full SHA for 8c3f849
c10/util/TypeSafeSignMath.h
@@ -79,7 +79,7 @@ template <typename Limit, typename T>
79
inline constexpr bool greater_than_max(const T& x) {
80
constexpr bool can_overflow =
81
std::numeric_limits<T>::digits > std::numeric_limits<Limit>::digits;
82
- return can_overflow && x > std::numeric_limits<Limit>::max();
+ return can_overflow && x > (std::numeric_limits<Limit>::max)();
83
}
84
85
#ifdef __GNUC__
0 commit comments