[Python-checkins] cpython (3.5): remove long double from ctypes value union

benjamin.peterson python-checkins at python.org
Mon Sep 5 19:27:33 EDT 2016


https://hg.python.org/cpython/rev/8b6be1341770
changeset:   103095:8b6be1341770
branch:      3.5
parent:      103090:5566732c8ac5
user:        Benjamin Peterson <benjamin at python.org>
date:        Mon Sep 05 16:24:52 2016 -0700
summary:
  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.

files:
  Modules/_ctypes/ctypes.h |  2 --
  1 files changed, 0 insertions(+), 2 deletions(-)


diff --git a/Modules/_ctypes/ctypes.h b/Modules/_ctypes/ctypes.h
--- a/Modules/_ctypes/ctypes.h
+++ b/Modules/_ctypes/ctypes.h
@@ -34,7 +34,6 @@
 #ifdef HAVE_LONG_LONG
                 PY_LONG_LONG ll;
 #endif
-                long double D;
 };
 
 /*
@@ -306,7 +305,6 @@
 #ifdef HAVE_LONG_LONG
         PY_LONG_LONG q;
 #endif
-        long double D;
         double d;
         float f;
         void *p;

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list