Skip to content

Commit

Permalink
Take argument by const& as the input range is const
Browse files Browse the repository at this point in the history
  • Loading branch information
miscco committed Jan 30, 2025
1 parent cceb37d commit 074d7fc
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 074d7fc

Please sign in to comment.