This is the mail archive of the
mailing list for the GCC project.
A bit field's length
- From: kum <a dot kumaresh at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 21 Nov 2007 17:42:12 +0530
- Subject: A bit field's length
On a 32 bit platform,
Is this structure legal?
UINT64 part1 : 48;
UINT64 part2 : 16;
Do I have to tune the compiler to pack them into a single 64 bit
space? While assigning some 32 bit value to Parts.part1, do I have to
cast the r-value into UINT64?
Sorry if this were a repetition.