Skip to content

Commit 6d99980

Browse files
committed
remove long double from ctypes value union
It is unused. It also forces a 16-byte alignment, which creates problems because Python's allocator only uses 8-byte alignment.
1 parent 281e5f8 commit 6d99980

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Modules/_ctypes/ctypes.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ union value {
3434
#ifdef HAVE_LONG_LONG
3535
PY_LONG_LONG ll;
3636
#endif
37-
long double D;
3837
};
3938

4039
/*
@@ -306,7 +305,6 @@ struct tagPyCArgObject {
306305
#ifdef HAVE_LONG_LONG
307306
PY_LONG_LONG q;
308307
#endif
309-
long double D;
310308
double d;
311309
float f;
312310
void *p;

0 commit comments

Comments
 (0)