This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients Steve.Thompson, amaury.forgeotdarc, santoso.wijaya
Date 2011-04-25.18:57:43
SpamBayes Score 2.614231e-07
Marked as misclassified No
Message-id <1303757864.36.0.484041283971.issue11920@psf.upfronthosting.co.za>
In-reply-to
Content
The output is: "3 2" on windows. It is "2 2" on the linux 64bit I tried.
This is consistent with what the usual compilers do on these platforms: MSVC on windows, and gcc on linux.

The specification of the C language specifies that """If an adjacent bitfield will not fit into the remainder of the unit, the implementation defines whether bitfields are allowed to span units or whether another unit is allocated for the second bitfield"""

Are you using gcc on windows? In this case I suggest to always use the largest type to declare the bitfields.
History
Date User Action Args
2011-04-25 18:57:44amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, santoso.wijaya, Steve.Thompson
2011-04-25 18:57:44amaury.forgeotdarcsetmessageid: <1303757864.36.0.484041283971.issue11920@psf.upfronthosting.co.za>
2011-04-25 18:57:43amaury.forgeotdarclinkissue11920 messages
2011-04-25 18:57:43amaury.forgeotdarccreate