Show More
@@ -7,6 +7,7 b'' | |||
|
7 | 7 | the GNU General Public License, incorporated herein by reference. |
|
8 | 8 | */ |
|
9 | 9 | |
|
10 | #define PY_SSIZE_T_CLEAN | |
|
10 | 11 | #include <Python.h> |
|
11 | 12 | #include <ctype.h> |
|
12 | 13 | #include <stddef.h> |
@@ -164,8 +165,9 b' static PyObject *parse_dirstate(PyObject' | |||
|
164 | 165 | PyObject *fname = NULL, *cname = NULL, *entry = NULL; |
|
165 | 166 | char state, *cur, *str, *cpos; |
|
166 | 167 | int mode, size, mtime; |
|
167 |
unsigned int flen, |
|
|
168 | int readlen; | |
|
168 | unsigned int flen, pos = 40; | |
|
169 | Py_ssize_t len = 40; | |
|
170 | Py_ssize_t readlen; | |
|
169 | 171 | |
|
170 | 172 | if (!PyArg_ParseTuple( |
|
171 | 173 | args, PY23("O!O!s#:parse_dirstate", "O!O!y#:parse_dirstate"), |
@@ -585,8 +587,7 b' bail:' | |||
|
585 | 587 | static PyObject *fm1readmarkers(PyObject *self, PyObject *args) |
|
586 | 588 | { |
|
587 | 589 | const char *data, *dataend; |
|
588 | int datalen; | |
|
589 | Py_ssize_t offset, stop; | |
|
590 | Py_ssize_t datalen, offset, stop; | |
|
590 | 591 | PyObject *markers = NULL; |
|
591 | 592 | |
|
592 | 593 | if (!PyArg_ParseTuple(args, PY23("s#nn", "y#nn"), &data, &datalen, |
General Comments 0
You need to be logged in to leave comments.
Login now