From: Sergey B Kirpichev Date: Thu, 24 Apr 2025 09:50:47 +0000 (+0300) Subject: gh-121249: fix naming of struct tagPyCArgObject members (#132863) X-Git-Tag: v3.14.0b1~334 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=580888927c8eafbf3d4c6be9144684117f0a96ca;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Modules/_ctypes/ctypes.h b/Modules/_ctypes/ctypes.h index 3533cfc66fc5..3b6d390728a0 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;