8000 MAINT Remove `-Wsign-compare` compilation warning for `_radius_neighb… · scikit-learn/scikit-learn@d0671b2 · GitHub
[go: up one dir, main page]

Skip to content

Commit d0671b2

Browse files
ChVeenjeremiedbb
authored andcommitted
MAINT Remove -Wsign-compare compilation warning for _radius_neighbors.pyx.tp (#27061)
1 parent cdf3116 commit d0671b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sklearn/metrics/_pairwise_distances_reduction/_radius_neighbors.pyx.tp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,8 @@ cdef class RadiusNeighbors{{name_suffix}}(BaseDistancesReduction{{name_suffix}})
300300
cdef void compute_exact_distances(self) noexcept nogil:
301301
"""Convert rank-preserving distances to pairwise distances in parallel."""
302302
cdef:
303-
intp_t i, j
303+
intp_t i
304+
vector[intp_t].size_type j
304305

305306
for i in prange(self.n_samples_X, nogil=True, schedule='static',
306307
num_threads=self.effective_n_threads):

0 commit comments

Comments
 (0)
0