Skip to content

Commit

Permalink
Fix warning/error in debug assertion in device_uvector.hpp (#979)
Browse files Browse the repository at this point in the history
Fixes #973

Authors:
  - Mark Harris (https://github.com/harrism)

Approvers:
  - Vyas Ramasubramani (https://github.com/vyasr)
  - Rong Ou (https://github.com/rongou)

URL: #979
  • Loading branch information
harrism authored Feb 22, 2022
1 parent 28b273d commit d8dc715
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/rmm/device_uvector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,8 @@ class device_uvector {
*/
[[nodiscard]] std::int64_t ssize() const noexcept
{
assert(size() < std::numeric_limits<int64_t>::max() && "Size overflows signed integer");
assert(size() < static_cast<std::size_t>(std::numeric_limits<int64_t>::max()) &&
"Size overflows signed integer");
return static_cast<int64_t>(size());
}

Expand Down

0 comments on commit d8dc715

Please sign in to comment.