Skip to content

Commit

Permalink
Fix a dangling reference warning with GCC-13 (#567)
Browse files Browse the repository at this point in the history
Related to rapidsai/cudf#16395

This PR fixes a dangling reference to a temporary warning with gcc13.
  • Loading branch information
PointKernel authored Aug 2, 2024
1 parent d92aefb commit 60ef99e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/cuco/detail/open_addressing/functors.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ struct get_slot {
auto const window_idx = idx / StorageRef::window_size;
auto const intra_idx = idx % StorageRef::window_size;
if constexpr (HasPayload) {
auto const& [first, second] = storage_[window_idx][intra_idx];
auto const [first, second] = storage_[window_idx][intra_idx];
return thrust::make_tuple(first, second);
} else {
return storage_[window_idx][intra_idx];
Expand Down

0 comments on commit 60ef99e

Please sign in to comment.