summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/_ctypes/cfield.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_ctypes/cfield.c b/Modules/_ctypes/cfield.c
index b147ae2..3595b05 100644
--- a/Modules/_ctypes/cfield.c
+++ b/Modules/_ctypes/cfield.c
@@ -124,7 +124,7 @@ CField_FromDesc(PyObject *desc, int index,
self->getfunc = getfunc;
self->index = index;
- Py_XINCREF(proto);
+ Py_INCREF(proto);
self->proto = proto;
switch (fieldtype) {