summaryrefslogtreecommitdiffstats
path: root/Modules/_ctypes
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-08-24 23:01:30 (GMT)
committerGitHub <noreply@github.com>2023-08-24 23:01:30 (GMT)
commitb32d4cad15f537f25063bcd56377e16df59d98db (patch)
tree0a71372347d58e79575f9dfae35407c694fcb611 /Modules/_ctypes
parent4e5a7284eef4308dce252ca1115d4a5a5b7e6ae8 (diff)
downloadcpython-b32d4cad15f537f25063bcd56377e16df59d98db.zip
cpython-b32d4cad15f537f25063bcd56377e16df59d98db.tar.gz
cpython-b32d4cad15f537f25063bcd56377e16df59d98db.tar.bz2
gh-108444: Replace _PyLong_AsInt() with PyLong_AsInt() (#108459)
Change generated by the command: sed -i -e 's!_PyLong_AsInt!PyLong_AsInt!g' \ $(find -name "*.c" -o -name "*.h")
Diffstat (limited to 'Modules/_ctypes')
-rw-r--r--Modules/_ctypes/stgdict.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_ctypes/stgdict.c b/Modules/_ctypes/stgdict.c
index 54291a7..9b0ca73 100644
--- a/Modules/_ctypes/stgdict.c
+++ b/Modules/_ctypes/stgdict.c
@@ -401,7 +401,7 @@ PyCStructUnionType_update_stgdict(PyObject *type, PyObject *fields, int isStruct
return -1;
}
if (tmp) {
- pack = _PyLong_AsInt(tmp);
+ pack = PyLong_AsInt(tmp);
Py_DECREF(tmp);
if (pack < 0) {
if (!PyErr_Occurred() ||