[Python-checkins] r61915 - python/trunk/Modules/_ctypes/_ctypes.c
thomas.heller
python-checkins at python.org
Tue Mar 25 22:18:39 CET 2008
Author: thomas.heller
Date: Tue Mar 25 22:18:39 2008
New Revision: 61915
Modified:
python/trunk/Modules/_ctypes/_ctypes.c
Log:
Make _ctypes.c PY_SSIZE_T_CLEAN.
Modified: python/trunk/Modules/_ctypes/_ctypes.c
==============================================================================
--- python/trunk/Modules/_ctypes/_ctypes.c (original)
+++ python/trunk/Modules/_ctypes/_ctypes.c Tue Mar 25 22:18:39 2008
@@ -104,6 +104,8 @@
*
*/
+#define PY_SSIZE_T_CLEAN
+
#include "Python.h"
#include "structmember.h"
@@ -2293,7 +2295,7 @@
CData_setstate(PyObject *_self, PyObject *args)
{
void *data;
- int len;
+ Py_ssize_t len;
int res;
PyObject *dict, *mydict;
CDataObject *self = (CDataObject *)_self;
@@ -3023,7 +3025,7 @@
char *name = NULL;
PyObject *paramflags = NULL;
GUID *iid = NULL;
- int iid_len = 0;
+ Py_ssize_t iid_len = 0;
if (!PyArg_ParseTuple(args, "is|Oz#", &index, &name, ¶mflags, &iid, &iid_len))
return NULL;
More information about the Python-checkins
mailing list