Skip to content

Commit 890fae7

Browse files
committed
Fix incorrect bounds check
1 parent f3d7f2a commit 890fae7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nhs_grid.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ function initialize_grid!(neighborhood_search::GridNeighborhoodSearch, y::Abstra
231231
return neighborhood_search
232232
end
233233

234-
@boundscheck checkbounds(y, eachindex_y)
234+
@boundscheck checkbounds(y, ndims(neighborhood_search), eachindex_y)
235235

236236
# Ignore the parallelization backend here. This cannot be parallelized.
237237
for point in eachindex_y

0 commit comments

Comments
 (0)