1. 19 Apr, 2021 1 commit
    • Amos Robinson's avatar
      Elab bitfields: check size of type <=32bit rather than checking rank (#387) · 0877e32e
      Amos Robinson authored
      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: default avatarAmos Robinson <amos@gh.st>