[Python-Dev] mingw32 and gc-header weirdness

"Martin v. Löwis" martin at v.loewis.de
Sat Jul 25 17:22:06 CEST 2009


>> Why is that difficult? It's sizeof(PyGC_Head).
> 
> Is it enough to correctly propagate the alignment for, say, a long double in
> the following PyObject? I'm sorry, I'm not enough of a C lawyer.

Yes, sizeof must always be a multiple of the alignment. Otherwise, array
elements would be misaligned.

Regards,
Martin


More information about the Python-Dev mailing list