Skip to content
1 change: 0 additions & 1 deletion Modules/_ctypes/_ctypes.c
Original file line number Diff line number Diff line change
Expand Up @@ -1972,7 +1972,6 @@ static PyObject *CreateSwappedType(ctypes_state *st, PyTypeObject *type,
PyObject *name = PyTuple_GET_ITEM(args, 0);
PyObject *newname;
PyObject *swapped_args;
static PyObject *suffix;
Py_ssize_t i;

swapped_args = PyTuple_New(PyTuple_GET_SIZE(args));
Expand Down
2 changes: 1 addition & 1 deletion Modules/_ctypes/callproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2022,7 +2022,7 @@ create_pointer_inst(PyObject *module, PyObject *arg)
return NULL;
}
if (typ == NULL) {
typ = create_pointer_type(NULL, (PyObject *)Py_TYPE(arg));
typ = create_pointer_type(module, (PyObject *)Py_TYPE(arg));
if (typ == NULL)
return NULL;
}
Expand Down