]> granicus.if.org Git - python/commitdiff
Make Py_ssize_t clean.
authorThomas Wouters <thomas@python.org>
Wed, 1 Mar 2006 23:49:13 +0000 (23:49 +0000)
committerThomas Wouters <thomas@python.org>
Wed, 1 Mar 2006 23:49:13 +0000 (23:49 +0000)
Python/marshal.c

index 585c1ebd44de4455d77553eb409db3a930d793ad..7234a5cc9525fdd1d2629d5ce4e84f08ebdb433a 100644 (file)
@@ -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;