[Python-checkins] cpython (2.7): 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/b5c5f16432fc
changeset: 103096:b5c5f16432fc
branch: 2.7
parent: 103091:2593ed9a6a62
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
@@ -72,7 +72,6 @@
#ifdef HAVE_LONG_LONG
PY_LONG_LONG ll;
#endif
- long double D;
};
/*
@@ -344,7 +343,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