File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
include/cuco/detail/roaring_bitmap Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ class roaring_bitmap_impl<cuda::std::uint32_t> {
4242 public:
4343 using storage_ref_type = roaring_bitmap_storage_ref<cuda::std::uint32_t >;
4444
45- static constexpr cuda::std::uint32_t binary_search_threshold = 8 ; // TODO determine optimal value
45+ static constexpr cuda::std::int32_t binary_search_threshold = 8 ; // TODO determine optimal value
4646
4747 __host__ __device__ roaring_bitmap_impl (storage_ref_type const & storage_ref)
4848 : storage_ref_{storage_ref},
@@ -112,7 +112,7 @@ class roaring_bitmap_impl<cuda::std::uint32_t> {
112112 if (storage_ref_.metadata ().num_containers < binary_search_threshold) {
113113// linear search
114114#pragma unroll
115- for (cuda::std::uint32_t i = 0 ; i < storage_ref_.metadata ().num_containers ; i++) {
115+ for (cuda::std::int32_t i = 0 ; i < storage_ref_.metadata ().num_containers ; i++) {
116116 cuda::std::byte const * key_ptr =
117117 storage_ref_.key_cards () + (i * 2 ) * sizeof (cuda::std::uint16_t );
118118 if constexpr (Aligned) {
You can’t perform that action at this time.
0 commit comments