From 50428406b1c6f1fe17e3cbe432f7c33a06a277bd Mon Sep 17 00:00:00 2001 From: Jason Lowe Date: Fri, 4 Feb 2022 12:42:08 -0600 Subject: [PATCH] Fix signed/unsigned comparison warning --- include/rmm/device_buffer.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()); }