diff --git a/cpp/include/cudf/lists/lists_column_view.hpp b/cpp/include/cudf/lists/lists_column_view.hpp index 8cabf5287c8..6c5cfc37eab 100644 --- a/cpp/include/cudf/lists/lists_column_view.hpp +++ b/cpp/include/cudf/lists/lists_column_view.hpp @@ -107,7 +107,7 @@ class lists_column_view : private column_view { * * @return int32_t const* Pointer to one past the last offset */ - offset_iterator offsets_end() const noexcept { return offsets_begin() + size(); } + offset_iterator offsets_end() const noexcept { return offsets_begin() + offsets().size(); } }; /** @} */ // end of group } // namespace cudf