Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Modules/_ctypes/_ctypes.c
Original file line number Diff line number Diff line change
Expand Up @@ -3801,8 +3801,9 @@ _validate_paramflags(ctypes_state *st, PyTypeObject *type, PyObject *paramflags)
}

static int
_get_name(PyObject *obj, const char **pname)
_get_name(PyObject *obj, void *arg)
{
const char **pname = (const char **)arg;
#ifdef MS_WIN32
if (PyLong_Check(obj)) {
/* We have to use MAKEINTRESOURCEA for Windows CE.
Expand Down
6 changes: 4 additions & 2 deletions Modules/_ctypes/callproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1355,8 +1355,9 @@ PyObject *_ctypes_callproc(ctypes_state *st,
}

static int
_parse_voidp(PyObject *obj, void **address)
_parse_voidp(PyObject *obj, void *arg)
{
void **address = (void **)arg;
*address = PyLong_AsVoidPtr(obj);
if (*address == NULL)
return 0;
Expand Down Expand Up @@ -1848,8 +1849,9 @@ addressof(PyObject *self, PyObject *obj)
}

static int
converter(PyObject *obj, void **address)
converter(PyObject *obj, void *arg)
{
void **address = (void **)arg;
*address = PyLong_AsVoidPtr(obj);
return *address != NULL;
}
Expand Down
2 changes: 1 addition & 1 deletion Modules/_ctypes/cfield.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ PyCField_set(PyObject *op, PyObject *inst, PyObject *value)
}

static PyObject *
PyCField_get(PyObject *op, PyObject *inst, PyTypeObject *type)
PyCField_get(PyObject *op, PyObject *inst, PyObject *type)
{
CDataObject *src;
CFieldObject *self = _CFieldObject_CAST(op);
Expand Down
Loading