Skip to content

Commit 5808889

Browse files
authored
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 85f89cb.
1 parent a94c752 commit 5808889

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Modules/_ctypes/ctypes.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -489,14 +489,14 @@ struct tagPyCArgObject {
489489
int i;
490490
long l;
491491
long long q;
492-
long double D;
492+
long double g;
493493
double d;
494494
float f;
495495
void *p;
496496
#if defined(Py_HAVE_C_COMPLEX) && defined(Py_FFI_SUPPORT_C_COMPLEX)
497-
double complex C;
498-
float complex E;
499-
long double complex F;
497+
double complex D;
498+
float complex F;
499+
long double complex G;
500500
#endif
501501
} value;
502502
PyObject *obj;

0 commit comments

Comments
 (0)