]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
remove long double from ctypes value union
authorBenjamin Peterson <benjamin@python.org>
Mon, 5 Sep 2016 23:24:52 +0000 (16:24 -0700)
committerBenjamin Peterson <benjamin@python.org>
Mon, 5 Sep 2016 23:24:52 +0000 (16:24 -0700)
It is unused. It also forces a 16-byte alignment, which creates problems because
Python's allocator only uses 8-byte alignment.

Modules/_ctypes/ctypes.h

index 0d3f7241ca8f3e1c175cb2c46129740482df48ab..d80ea82cee8cc79ec2a2f56eaba514c52bfabd5d 100644 (file)
@@ -34,7 +34,6 @@ union value {
 #ifdef HAVE_LONG_LONG
                 PY_LONG_LONG ll;
 #endif
-                long double D;
 };
 
 /*
@@ -306,7 +305,6 @@ struct tagPyCArgObject {
 #ifdef HAVE_LONG_LONG
         PY_LONG_LONG q;
 #endif
-        long double D;
         double d;
         float f;
         void *p;