Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Use signed offsets
Browse files Browse the repository at this point in the history
  • Loading branch information
gevtushenko committed Nov 13, 2022
1 parent 8b9f0b0 commit 6153c10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cub/detail/choose_offset.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ struct ChooseOffsetT
!std::is_same<typename std::remove_cv<NumItemsT>::type, bool>::value,
"NumItemsT must be an integral type, but not bool");

// Unsigned integer type for global offsets.
// Signed integer type for global offsets.
using Type = typename std::conditional<sizeof(NumItemsT) <= 4,
std::uint32_t,
unsigned long long>::type;
std::int32_t,
std::int64_t>::type;
};

} // namespace detail
Expand Down

0 comments on commit 6153c10

Please sign in to comment.