Skip to content

Commit 1e7d292

Browse files
committed
Update on "bump pt core pin to 0718"
Differential Revision: [D78579692](https://our.internmc.facebook.com/intern/diff/D78579692/) [ghstack-poisoned]
2 parents c603e3b + 490fac2 commit 1e7d292

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/core/portable_type/c10/c10/util/TypeSafeSignMath.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ template <typename Limit, typename T>
7979
inline constexpr bool greater_than_max(const T& x) {
8080
constexpr bool can_overflow =
8181
std::numeric_limits<T>::digits > std::numeric_limits<Limit>::digits;
82-
return can_overflow && x > std::numeric_limits<Limit>::max();
82+
return can_overflow && x > (std::numeric_limits<Limit>::max)();
8383
}
8484

8585
#ifdef __GNUC__

0 commit comments

Comments
 (0)