From 5afcdf162c93518c73997aa4fabdccc7ca0f4df7 Mon Sep 17 00:00:00 2001 From: Mark Harris Date: Tue, 15 Feb 2022 10:39:44 +1100 Subject: [PATCH] Fix warning/error in assertion in debug build --- include/rmm/device_uvector.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()); }