]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-121249: fix naming of struct tagPyCArgObject members (#132863)
authorSergey B Kirpichev <skirpichev@gmail.com>
Thu, 24 Apr 2025 09:50:47 +0000 (12:50 +0300)
committerGitHub <noreply@github.com>
Thu, 24 Apr 2025 09:50:47 +0000 (11:50 +0200)
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.

Modules/_ctypes/ctypes.h

index 3533cfc66fc56d992eb8746cde78f2116f47e74c..3b6d390728a07f580128d0e3c8221a31cbefef32 100644 (file)
@@ -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;