Skip to content

Commit 33c716b

Browse files
committed
Oopsie in if condition
1 parent 02cc64f commit 33c716b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

search/include/pcl/search/impl/search.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ Search<PointT>::makeNonTrivial(index_t index,
270270
std::size_t same_idx_elements = 0;
271271
// distances are sorted, so if we encounter a non-zero, we can bail early
272272
for (const auto& idx : k_indices) {
273-
if (idx == index) {
273+
if (idx != index) {
274274
break;
275275
}
276276
++same_idx_elements;

0 commit comments

Comments
 (0)