Skip to content

Commit aa0b970

Browse files
committed
Merge pull request #11429 from chris-b1/boundscheck-warnings
CLN: (more) boundscheck warnings in tslib
2 parents 8e0976c + ebc59c4 commit aa0b970

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pandas/tslib.pyx

+4
Original file line numberDiff line numberDiff line change
@@ -4240,6 +4240,8 @@ cdef inline int m8_weekday(int64_t val):
42404240
cdef int64_t DAY_NS = 86400000000000LL
42414241

42424242

4243+
@cython.wraparound(False)
4244+
@cython.boundscheck(False)
42434245
def date_normalize(ndarray[int64_t] stamps, tz=None):
42444246
cdef:
42454247
Py_ssize_t i, n = len(stamps)
@@ -4262,6 +4264,8 @@ def date_normalize(ndarray[int64_t] stamps, tz=None):
42624264

42634265
return result
42644266

4267+
@cython.wraparound(False)
4268+
@cython.boundscheck(False)
42654269
cdef _normalize_local(ndarray[int64_t] stamps, object tz):
42664270
cdef:
42674271
Py_ssize_t n = len(stamps)

0 commit comments

Comments
 (0)