File: remove_usage_of_long.patch

package info (click to toggle)
sorted-nearest 0.0.41%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 328 kB
  • sloc: python: 214; sh: 20; makefile: 8
file content (24 lines) | stat: -rw-r--r-- 951 bytes parent folder | download
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