Skip to content

Commit 2d6b688

Browse files
committed
change to version < 3
1 parent d36902c commit 2d6b688

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/_libs/src/compat_helper.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ but 3.6.1 in particular changes the behavior of this function slightly
2222
PANDAS_INLINE int slice_get_indices(PyObject *s, Py_ssize_t length,
2323
Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step,
2424
Py_ssize_t *slicelength) {
25-
#if PY_VERSION_HEX >= 0x03060000
25+
#if PY_VERSION_HEX >= 0x03000000
2626
return PySlice_GetIndicesEx(s, length, start, stop, step, slicelength);
2727
#else
28-
return PySlice_GetIndicesEx(<PySliceObject *>s, length, start, stop, step, slicelength);
28+
return PySlice_GetIndicesEx((PySliceObject *)s, length, start, stop, step, slicelength);
2929
#endif
3030
}
3131

0 commit comments

Comments
 (0)