equal
deleted
inserted
replaced
679 |
679 |
680 static PyObject *index_insert(indexObject *self, PyObject *args) |
680 static PyObject *index_insert(indexObject *self, PyObject *args) |
681 { |
681 { |
682 PyObject *obj; |
682 PyObject *obj; |
683 char *node; |
683 char *node; |
684 long offset; |
684 Py_ssize_t offset, len, nodelen; |
685 Py_ssize_t len, nodelen; |
685 |
686 |
686 if (!PyArg_ParseTuple(args, "nO", &offset, &obj)) |
687 if (!PyArg_ParseTuple(args, "lO", &offset, &obj)) |
|
688 return NULL; |
687 return NULL; |
689 |
688 |
690 if (!PyTuple_Check(obj) || PyTuple_GET_SIZE(obj) != 8) { |
689 if (!PyTuple_Check(obj) || PyTuple_GET_SIZE(obj) != 8) { |
691 PyErr_SetString(PyExc_TypeError, "8-tuple required"); |
690 PyErr_SetString(PyExc_TypeError, "8-tuple required"); |
692 return NULL; |
691 return NULL; |