[Python-checkins] r42763 - python/trunk/Python/marshal.c
thomas.wouters
python-checkins at python.org
Thu Mar 2 00:49:14 CET 2006
Author: thomas.wouters
Date: Thu Mar 2 00:49:13 2006
New Revision: 42763
Modified:
python/trunk/Python/marshal.c
Log:
Make Py_ssize_t clean.
Modified: python/trunk/Python/marshal.c
==============================================================================
--- python/trunk/Python/marshal.c (original)
+++ python/trunk/Python/marshal.c Thu Mar 2 00:49:13 2006
@@ -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;
More information about the Python-checkins
mailing list