Skip to content

Commit

Permalink
TST: fix testing on Windows against numpy2
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed Jul 1, 2024
1 parent 93ceb32 commit 8093a92
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ewah_bool_utils/_testing.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ ctypedef fused dtype_t:
np.float32_t
np.float64_t

ctypedef fused int_t:
np.int32_t
np.int64_t


cdef class Index:
cdef void* ewah_array
Expand Down Expand Up @@ -73,7 +77,7 @@ cdef class Index:
ids.size, ewah_array[0].sizeInBytes()))


cpdef np.uint64_t[:] ewah_set_and_unset(long[:] arr):
cpdef np.uint64_t[:] ewah_set_and_unset(np.ndarray[int_t, ndim=1] arr):
cdef ewah_bool_array *ewah_arr
cdef vector[size_t] vec

Expand Down

0 comments on commit 8093a92

Please sign in to comment.