Skip to content

Commit

Permalink
change optional operator* call to operator->
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwendt committed Oct 4, 2021
1 parent fe429a6 commit 85286ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/include/cudf/strings/detail/copy_if_else.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ std::unique_ptr<cudf::column> copy_if_else(
// build offsets column
auto offsets_transformer = [lhs_begin, rhs_begin, filter_fn] __device__(size_type idx) {
auto const result = filter_fn(idx) ? lhs_begin[idx] : rhs_begin[idx];
return result.has_value() ? (*result).size_bytes() : 0;
return result.has_value() ? result->size_bytes() : 0;
};

auto offsets_transformer_itr = thrust::make_transform_iterator(
Expand Down

0 comments on commit 85286ae

Please sign in to comment.