Skip to content

Commit cb31b2b

Browse files
qwhelanjreback
authored andcommitted
Fix 32-bit builds by correctly using intp_t instead of int64_t for numpy.searchsorted result (#24621)
1 parent 9642fea commit cb31b2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/_libs/tslibs/conversion.pyx

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import cython
33

44
import numpy as np
55
cimport numpy as cnp
6-
from numpy cimport uint8_t, int64_t, int32_t, ndarray
6+
from numpy cimport uint8_t, int64_t, int32_t, intp_t, ndarray
77
cnp.import_array()
88

99
import pytz
@@ -639,7 +639,7 @@ cdef inline int64_t[:] _tz_convert_dst(int64_t[:] values, tzinfo tz,
639639
cdef:
640640
Py_ssize_t n = len(values)
641641
Py_ssize_t i
642-
int64_t[:] pos
642+
intp_t[:] pos
643643
int64_t[:] result = np.empty(n, dtype=np.int64)
644644
ndarray[int64_t] trans
645645
int64_t[:] deltas

0 commit comments

Comments
 (0)