Menu

#13 Make underlying bitfield type uniform

Unstable (example)
closed-fixed
nobody
Value (4)
5
2015-03-06
2012-04-06
Kerrek SB
No

Bitfield members only share the same underlying variable if they are adjacent and of the same type. This patch makes all three bitfields in Value use the same type, and since we need at most three bits, I made that type "unsigned char".

Discussion

  • Kerrek SB

    Kerrek SB - 2012-04-06
     
  • Christopher Dunn

    Switched from bool to unsigned at: https://github.com/open-source-parsers/jsoncpp

     
  • Christopher Dunn

    • status: open --> closed-fixed
    • Group: --> Unstable (example)
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.