Commit bff9936c authored by Marius Wachtler's avatar Marius Wachtler

ctypes: workaround unaligned pointer crash with clang 3.5

clang generates code which assumes that the PyCArgObject::value is 16 byte aligned but our current allocator only 8byte aligns
This made all code which used types crash on travis CI
parent de3288f1
......@@ -343,7 +343,8 @@ struct tagPyCArgObject {
#ifdef HAVE_LONG_LONG
PY_LONG_LONG q;
#endif
long double D;
// Pyston change: disable this 16byte type because our allocator doesn't align allocs to 16byte.
// long double D;
double d;
float f;
void *p;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment