Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the index type in the indexing operator of the span types (#17971)
Closes #17949 Closes #17960 Derived span classes use `size_type` for the index type in their `operator[]` implementations. The intent was to use `base::size_type`, but the type actually resolves to `cudf::size_type`, which is `int32_t`, and does not allow access past `int32_t::max`. This PR fixes the type used by explicitly using `typename base::size_type`. Also added static_asserts to make sure the type has the right size for element indexing.
- Loading branch information