Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
1-bit bitfield in boolean expression
#2
To clarify the question: I think it is obvious that a 1-bit flag is a boolean value, but our checker tool thinks it is not, and only accepts the clumsy form.
Unfortunately MISRA-C 2004 is missing a clear definition and the only hint is that a "flag" is allowed.
<t></t>
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)