aboutsummaryrefslogtreecommitdiffstats
path: root/test/regression/bitfields_uint_t.c
Commit message (Collapse)AuthorAgeFilesLines
* Elab bitfields: check size of type <=32bit rather than checking rank (#387)Amos Robinson2021-04-191-0/+22
When desugaring a bitfield, allow any integral type that is 32 bits or smaller. Previously this was checking the rank of the type rather than the size. This rank check caused issues with standard headers that declare `uint32_t` to be an `unsigned long` rather than an `unsigned int`. Here, any bitfields declared as `uint32_t` were failing to compile even though they are still actually 32 bits. Co-authored-by: Amos Robinson <amos@gh.st>