diff --git a/include/rmm/device_uvector.hpp b/include/rmm/device_uvector.hpp index 57ef1149a..bbc36c432 100644 --- a/include/rmm/device_uvector.hpp +++ b/include/rmm/device_uvector.hpp @@ -489,7 +489,8 @@ class device_uvector { */ [[nodiscard]] std::int64_t ssize() const noexcept { - assert(size() < std::numeric_limits::max() && "Size overflows signed integer"); + assert(size() < static_cast(std::numeric_limits::max()) && + "Size overflows signed integer"); return static_cast(size()); }