diff --git a/tpls/desul/include/desul/atomics/Common.hpp b/tpls/desul/include/desul/atomics/Common.hpp index b8dfcb8acd..b7353e7dba 100644 --- a/tpls/desul/include/desul/atomics/Common.hpp +++ b/tpls/desul/include/desul/atomics/Common.hpp @@ -83,11 +83,11 @@ struct numeric_limits_max; template <> struct numeric_limits_max { - static constexpr uint32_t value = 0xffffffffu; + static constexpr auto value = static_cast(-1); }; template <> struct numeric_limits_max { - static constexpr uint64_t value = 0xfffffffflu; + static constexpr auto value = static_cast(-1); }; constexpr bool atomic_always_lock_free(std::size_t size) {