diff options
author | Thomas Wouters <thomas@python.org> | 2006-03-01 23:49:13 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2006-03-01 23:49:13 (GMT) |
commit | 695934a0ef4332c12355d356f2188aa5261cbb3c (patch) | |
tree | e7e907c1af294953985d6deb4d60cdaef2cd73a3 /Python | |
parent | d9bfeac33047d17ab829653ec8d1e6822a635984 (diff) | |
download | cpython-695934a0ef4332c12355d356f2188aa5261cbb3c.zip cpython-695934a0ef4332c12355d356f2188aa5261cbb3c.tar.gz cpython-695934a0ef4332c12355d356f2188aa5261cbb3c.tar.bz2 |
Make Py_ssize_t clean.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/marshal.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Python/marshal.c b/Python/marshal.c index 585c1eb..7234a5c 100644 --- a/Python/marshal.c +++ b/Python/marshal.c @@ -4,6 +4,8 @@ a true persistent storage facility would be much harder, since it would have to take circular links and sharing into account. */ +#define PY_SSIZE_T_CLEAN + #include "Python.h" #include "longintrepr.h" #include "code.h" @@ -1088,7 +1090,7 @@ marshal_loads(PyObject *self, PyObject *args) { RFILE rf; char *s; - int n; + Py_ssize_t n; PyObject* result; if (!PyArg_ParseTuple(args, "s#:loads", &s, &n)) return NULL; |