##// END OF EJS Templates
parsers: use k instead of n for PyArg_ParseTuple because python 2.4 is awful
Augie Fackler -
r24032:c53bc2e5 default
parent child Browse files
Show More
@@ -2262,10 +2262,13 b' bail:'
2262
2262
2263 static PyObject *fm1readmarkers(PyObject *self, PyObject *args) {
2263 static PyObject *fm1readmarkers(PyObject *self, PyObject *args) {
2264 const char *data;
2264 const char *data;
2265 Py_ssize_t datalen, offset, stop;
2265 Py_ssize_t datalen;
2266 /* only unsigned long because python 2.4, should be Py_ssize_t */
2267 unsigned long offset, stop;
2266 PyObject *markers = NULL;
2268 PyObject *markers = NULL;
2267
2269
2268 if (!PyArg_ParseTuple(args, "s#nn", &data, &datalen, &offset, &stop)) {
2270 /* replace kk with nn when we drop Python 2.4 */
2271 if (!PyArg_ParseTuple(args, "s#kk", &data, &datalen, &offset, &stop)) {
2269 return NULL;
2272 return NULL;
2270 }
2273 }
2271 data += offset;
2274 data += offset;
General Comments 0
You need to be logged in to leave comments. Login now