Searched refs:off_index (Results 1 – 2 of 2) sorted by relevance
763 PyObject *offobj, *off_index; in file_seek() local771 off_index = PyNumber_Index(offobj); in file_seek()772 if (!off_index) { in file_seek()781 off_index = offobj; in file_seek()785 offset = PyInt_AsLong(off_index); in file_seek()787 offset = PyLong_Check(off_index) ? in file_seek()788 PyLong_AsLongLong(off_index) : PyInt_AsLong(off_index); in file_seek()790 Py_DECREF(off_index); in file_seek()
749 PyObject *offobj, *off_index; in file_seek() local757 off_index = PyNumber_Index(offobj); in file_seek()758 if (!off_index) { in file_seek()767 off_index = offobj; in file_seek()771 offset = PyInt_AsLong(off_index); in file_seek()773 offset = PyLong_Check(off_index) ? in file_seek()774 PyLong_AsLongLong(off_index) : PyInt_AsLong(off_index); in file_seek()776 Py_DECREF(off_index); in file_seek()