1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
--- a/sorted_nearest/src/windows.pyx
+++ b/sorted_nearest/src/windows.pyx
@@ -31,7 +31,7 @@
int length = len(starts)
int start, end
- output_arr_indexes = np.ones(max_n_windows, dtype=long) * -1
+ output_arr_indexes = np.ones(max_n_windows, dtype=int) * -1
output_arr_start = np.ones(max_n_windows, dtype=np.int32) * -1
output_arr_end = np.ones(max_n_windows, dtype=np.int32) * -1
@@ -84,9 +84,9 @@
int length = len(starts)
long start, end
- output_arr_indexes = np.ones(max_n_windows, dtype=long) * -1
- output_arr_start = np.ones(max_n_windows, dtype=long) * -1
- output_arr_end = np.ones(max_n_windows, dtype=long) * -1
+ output_arr_indexes = np.ones(max_n_windows, dtype=int) * -1
+ output_arr_start = np.ones(max_n_windows, dtype=int) * -1
+ output_arr_end = np.ones(max_n_windows, dtype=int) * -1
cdef long [::1] output_indexes
cdef long [::1] output_start
|