From a1871d6242dd4c8d58c299d003a25365d32cf0df Mon Sep 17 00:00:00 2001 From: Sergey B Kirpichev Date: Thu, 24 Apr 2025 06:47:30 +0300 Subject: [PATCH] gh-121249: fix naming of struct tagPyCArgObject members 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 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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;