Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 85f89cb.
  • Loading branch information
skirpichev committed Apr 24, 2025
commit a1871d6242dd4c8d58c299d003a25365d32cf0df
8 changes: 4 additions & 4 deletions Modules/_ctypes/ctypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down