Skip to content

Commit c1d3604

Browse files
authored
Update get_utc declarations (#55507)
* updated parameter definitions * revert memview -> ndarray declaration
1 parent 579b826 commit c1d3604

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pandas/_libs/tslibs/tzconversion.pyx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,11 @@ timedelta-like}
425425
return result.base # .base to get underlying ndarray
426426

427427

428-
cdef Py_ssize_t bisect_right_i8(int64_t *data, int64_t val, Py_ssize_t n):
428+
cdef Py_ssize_t bisect_right_i8(
429+
const int64_t *data,
430+
int64_t val,
431+
Py_ssize_t n
432+
) noexcept:
429433
# Caller is responsible for checking n > 0
430434
# This looks very similar to local_search_right in the ndarray.searchsorted
431435
# implementation.
@@ -463,7 +467,7 @@ cdef str _render_tstamp(int64_t val, NPY_DATETIMEUNIT creso):
463467

464468
cdef _get_utc_bounds(
465469
ndarray[int64_t] vals,
466-
int64_t* tdata,
470+
const int64_t* tdata,
467471
Py_ssize_t ntrans,
468472
const int64_t[::1] deltas,
469473
NPY_DATETIMEUNIT creso,

0 commit comments

Comments
 (0)