Skip to content

Commit

Permalink
Take argument by const& as the input range is const (#2558)
Browse files Browse the repository at this point in the history
Found breaking CCCL ci

Authors:
  - Michael Schellenberger Costa (https://github.com/miscco)

Approvers:
  - Kyle Edwards (https://github.com/KyleFromNVIDIA)
  - Dante Gama Dessavre (https://github.com/dantegd)

URL: #2558
  • Loading branch information
miscco authored Feb 6, 2025
1 parent 140e974 commit a436257
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/tests/neighbors/ball_cover.cu
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ RAFT_KERNEL count_discrepancies_kernel(value_idx* actual_idx,
}

struct is_nonzero {
__host__ __device__ bool operator()(uint32_t& i) { return i > 0; }
__host__ __device__ bool operator()(const uint32_t& i) { return i > 0; }
};

template <typename value_idx, typename value_t>
Expand Down

0 comments on commit a436257

Please sign in to comment.