Skip to content

Commit

Permalink
fix buffer mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxinye committed Feb 3, 2025
1 parent 5e1f199 commit ed14ad4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classix/merge_cm_win.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ cpdef density_merge(double[:, :] data, long long[:, :] splist, double radius, do
cdef int last_j

cdef int len_sp = splist.shape[0]
cdef np.ndarray[np.int64_t, ndim=1] splist_indices = splist.base[:, 0].astype(np.long)
cdef np.ndarray[np.int64, ndim=1] splist_indices = splist.base[:, 0].astype(np.int64)
cdef double[:] sort_vals_sp = sort_vals.base[splist_indices]
cdef double[:] half_nrm2_sp = half_nrm2.base[splist_indices]

Expand Down

0 comments on commit ed14ad4

Please sign in to comment.