Bitfield Pitfalls
4 points by calvin
4 points by calvin
Another fun one is the MSVC bitfield ABI in which packing is based on the storage type on the bitfield, not just the bit width, so bitfields of different types pack differently \o/. before being unkind recall that this may have been an error or an reasonable interpretation in the beginning of the 80s - before there was a C standard, and then fixed in the ABI forever because that’s how ABIs work.