https://github.com/python/cpython/commit/580888927c8eafbf3d4c6be9144684117f0a96ca
commit: 580888927c8eafbf3d4c6be9144684117f0a96ca
branch: main
author: Sergey B Kirpichev <[email protected]>
committer: vstinner <[email protected]>
date: 2025-04-24T11:50:47+02:00
summary:
gh-121249: fix naming of struct tagPyCArgObject members (#132863)
It seems, no code actually uses these names, only sizes of the unnamed
union members are important. Though, I think it's good to be here
consistent wrt type codes ('g' for long double, etc).
This amends 85f89cb3e6.
files:
M Modules/_ctypes/ctypes.h
diff --git a/Modules/_ctypes/ctypes.h b/Modules/_ctypes/ctypes.h
index 3533cfc66fc56d..3b6d390728a07f 100644
--- a/Modules/_ctypes/ctypes.h
+++ b/Modules/_ctypes/ctypes.h
@@ -489,14 +489,14 @@ struct tagPyCArgObject {
int i;
long l;
long long q;
- long double D;
+ long double g;
double d;
float f;
void *p;
#if defined(Py_HAVE_C_COMPLEX) && defined(Py_FFI_SUPPORT_C_COMPLEX)
- double complex C;
- float complex E;
- long double complex F;
+ double complex D;
+ float complex F;
+ long double complex G;
#endif
} value;
PyObject *obj;
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]