Skip to content

Commit 7501ad1

Browse files
committed
Fix wrong min/max constants from copy-paste.
1 parent 6e426f6 commit 7501ad1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libc/src/__support/FPUtil/ManipulationFunctions.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ template <> struct IntLogbConstants<int> {
8383
template <> struct IntLogbConstants<long> {
8484
LIBC_INLINE_VAR static constexpr long FP_LOGB0 = FP_ILOGB0;
8585
LIBC_INLINE_VAR static constexpr long FP_LOGBNAN = FP_ILOGBNAN;
86-
LIBC_INLINE_VAR static constexpr long T_MAX = INT_MAX;
87-
LIBC_INLINE_VAR static constexpr long T_MIN = INT_MIN;
86+
LIBC_INLINE_VAR static constexpr long T_MAX = LONG_MAX;
87+
LIBC_INLINE_VAR static constexpr long T_MIN = LONG_MIN;
8888
};
8989

9090
template <typename T, typename U>

0 commit comments

Comments
 (0)