diff --git a/include/rmm/device_buffer.hpp b/include/rmm/device_buffer.hpp index 78f8ba184..497d2cffe 100644 --- a/include/rmm/device_buffer.hpp +++ b/include/rmm/device_buffer.hpp @@ -324,7 +324,8 @@ class device_buffer { */ [[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()); }