8000 add missing function arg: module · python/cpython@b2adc1f · GitHub
[go: up one dir, main page]

Skip to content

Commit b2adc1f

Browse files
committed
add missing function arg: module
1 parent b1e5629 commit b2adc1f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Modules/_ctypes/_ctypes.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1972,7 +1972,6 @@ static PyObject *CreateSwappedType(ctypes_state *st, PyTypeObject *type,
19721972
PyObject *name = PyTuple_GET_ITEM(args, 0);
19731973
PyObject *newname;
19741974
PyObject *swapped_args;
1975-
static PyObject *suffix;
19761975
Py_ssize_t i;
19771976

19781977
swapped_args = PyTuple_New(PyTuple_GET_SIZE(args));

Modules/_ctypes/callproc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2022,7 +2022,7 @@ create_pointer_inst(PyObject *module, PyObject *arg)
20222022
return NULL;
20232023
}
20242024
if (typ == NULL) {
2025-
typ = create_pointer_type(NULL, (PyObject *)Py_TYPE(arg));
2025+
typ = create_pointer_type(module, (PyObject *)Py_TYPE(arg));
20262026
if (typ == NULL)
20272027
return NULL;
20282028
}

0 commit comments

Comments
 (0)
0