Skip to content

Commit 46a0896

Browse files
committed
Using PySequence_GetItem -> PyList_GetItem
1 parent 2c2d021 commit 46a0896

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ttvfast_wrapper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ static PyObject *_ttvfast__ttvfast(PyObject *self, PyObject *args) {
138138
RV_model = (CalcRV*)calloc(len_rv, sizeof(CalcRV));
139139
for (int i=0; i<len_rv; i++) {
140140
(RV_model+i)->time = PyFloat_AsDouble(
141-
PySequence_GetItem(rv_times_obj, i));
141+
PyList_GetItem(rv_times_obj, i));
142142
}
143143
} else {
144144
RV_model = NULL;

0 commit comments

Comments
 (0)