Message134402
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. |
|
Date |
User |
Action |
Args |
2011-04-25 18:57:44 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, santoso.wijaya, Steve.Thompson |
2011-04-25 18:57:44 | amaury.forgeotdarc | set | messageid: <1303757864.36.0.484041283971.issue11920@psf.upfronthosting.co.za> |
2011-04-25 18:57:43 | amaury.forgeotdarc | link | issue11920 messages |
2011-04-25 18:57:43 | amaury.forgeotdarc | create | |
|