Skip to content

Commit c309033

Browse files
committed
Fix or warning
1 parent b8fe847 commit c309033

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/boost/safe_numbers/detail/float_basis.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ BOOST_SAFE_NUMBERS_HOST_DEVICE [[nodiscard]] constexpr auto constexpr_abs(const
374374
template <compatible_float_type T>
375375
BOOST_SAFE_NUMBERS_HOST_DEVICE [[nodiscard]] constexpr auto constexpr_isinf(const T val) noexcept -> bool
376376
{
377-
return (val > std::numeric_limits<T>::max()) | (val < std::numeric_limits<T>::lowest());
377+
return (val > std::numeric_limits<T>::max()) || (val < std::numeric_limits<T>::lowest());
378378
}
379379

380380
// val != val is the canonical NAN test

0 commit comments

Comments
 (0)