Skip to content

Commit 25e754a

Browse files
Update lib.pyx
Update maybe_indices_to_slice to use intp_t for max_len rather than int
1 parent 37b0d21 commit 25e754a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/_libs/lib.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ def has_only_ints_or_nan(const floating[:] arr) -> bool:
494494
return True
495495

496496

497-
def maybe_indices_to_slice(ndarray[intp_t, ndim=1] indices, int max_len):
497+
def maybe_indices_to_slice(ndarray[intp_t, ndim=1] indices, intp_t max_len):
498498
cdef:
499499
Py_ssize_t i, n = len(indices)
500500
intp_t k, vstart, vlast, v

0 commit comments

Comments
 (0)