summaryrefslogtreecommitdiff
path: root/Modules/_ctypes
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-01-23 10:23:58 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2017-01-23 10:23:58 +0200
commitd1302c01544317267345970f351a015626b54f61 (patch)
tree332559e78670c92434301ee77133ec08fd762973 /Modules/_ctypes
parent228b12edcce49649d6befa3c03dbcefd5a22ae76 (diff)
downloadcpython-git-d1302c01544317267345970f351a015626b54f61.tar.gz
Issue #28999: Use Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE wherever
possible but Coccinelle couldn't find opportunity.
Diffstat (limited to 'Modules/_ctypes')
-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 ec30b8cc44..bb9b115bd2 100644
--- a/Modules/_ctypes/cfield.c
+++ b/Modules/_ctypes/cfield.c
@@ -498,7 +498,7 @@ get_ulonglong(PyObject *v, unsigned long long *p)
#ifdef _CTYPES_DEBUG_KEEP
#define _RET(x) Py_INCREF(x); return x
#else
-#define _RET(X) Py_INCREF(Py_None); return Py_None
+#define _RET(X) Py_RETURN_NONE
#endif
/*****************************************************************