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".
Switched from bool to unsigned at: https://github.com/open-source-parsers/jsoncpp
Log in to post a comment.
Switched from bool to unsigned at: https://github.com/open-source-parsers/jsoncpp