Michael Hudson wrote: > "Tim Peters" <[EMAIL PROTECTED]> writes: > >> _Perhaps_ it's the case that doubles are aligned to an 8-byte boundary >> when socketmodule.c is compiled, but (for some unknown reason) only to >> a 4-byte boundary when _ssl.c is compiled. Although that seems to >> match the details in the bug report, I have no theory for how that >> could happen (I don't see any MS packing pragmas anywhere). > > Well, poking a bit reveals that _ssl and _socket are built by quite > different mechanisms: _socket by a .vcproj but _ssl by "_ssl.mak". I > don't see anything overly suspicious in _ssl.mak, but I don't really > know much about Windows compiler options...
A mailing list post found via Google suggests that Visual Studio automatically sets the struct member alignment to 4 bytes when building via old .mak files, for compatibility with older VC++. Anyway, a /Zp8 flag should correct this. Georg _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com