Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9b3543a

Browse files
committed
MNT: future numpy only takes ints as index
1 parent 4f73376 commit 9b3543a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unit/memleak.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
def run_memleak_test(bench, iterations, report):
2121
tracemalloc.start()
2222

23-
starti = min(50, iterations / 2)
23+
starti = int(min(50, iterations / 2))
2424
endi = iterations
2525

2626
malloc_arr = np.empty((endi,), dtype=np.int64)

0 commit comments

Comments
 (0)