Skip to content

Commit

Permalink
fix rare segfault set diff helper (#22)
Browse files Browse the repository at this point in the history
* fix rare segfault set diff helper

* Remove print statements
  • Loading branch information
endrebak authored Oct 30, 2019
1 parent 4e2620f commit 4d8afc3
Show file tree
Hide file tree
Showing 5 changed files with 1,150 additions and 683 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 0.0.47 (30.10.19)
- fix rare segfault in set_difference_helper

# 0.0.45 (07.10.19)
- try to fix another windows error

Expand Down
4 changes: 2 additions & 2 deletions ncls/src/ncls.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ cdef class NCLS64:

if nfound + nhit >= length:

length = length * 2
length = (length + nhit) * 2
output_arr = np.resize(output_arr, length)
output_arr_start = np.resize(output_arr_start, length)
output = output_arr
Expand Down Expand Up @@ -602,7 +602,7 @@ cdef class NCLS64:

if nfound >= length:

length = length * 2
length = nfound * 2
output_arr = np.resize(output_arr, length)
output_arr_other = np.resize(output_arr_other, length)
output = output_arr
Expand Down
Loading

0 comments on commit 4d8afc3

Please sign in to comment.