diff Python/marshal.c @ 36792:688795873ff1 legacy-trunk

Make Py_ssize_t clean.
author Thomas Wouters <thomas@python.org>
date Wed, 01 Mar 2006 23:49:13 +0000
parents d853bc06847e
children 9eb24f92a784
line wrap: on
line diff
--- a/Python/marshal.c	Wed Mar 01 23:24:34 2006 +0000
+++ b/Python/marshal.c	Wed Mar 01 23:49:13 2006 +0000
@@ -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 @@
 {
 	RFILE rf;
 	char *s;
-	int n;
+	Py_ssize_t n;
 	PyObject* result;
 	if (!PyArg_ParseTuple(args, "s#:loads", &s, &n))
 		return NULL;