Make _ctypes.c PY_SSIZE_T_CLEAN.
This commit is contained in:
parent
6f7e71dc32
commit
fffd939056
|
@ -104,6 +104,8 @@ bytes(cdata)
|
|||
*
|
||||
*/
|
||||
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
|
||||
#include "Python.h"
|
||||
#include "structmember.h"
|
||||
|
||||
|
@ -2293,7 +2295,7 @@ static PyObject *
|
|||
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 @@ CFuncPtr_FromVtblIndex(PyTypeObject *type, PyObject *args, PyObject *kwds)
|
|||
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;
|
||||
|
|
Loading…
Reference in New Issue