Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule 10.1 violation with casting
#2
MISRA-C:2004 is based on C90, not C99 and therefore does not cover the use of the _Bool and the stdbool.h header file. However, let us assume for the purposes of this discussion that your MISRA checker is treating "true" and "false" as an integer.

Rule 10.1 concerns implicit conversions and is not violated by this example since casts are present. MISRA permits the use of a cast as used in this example.
Posted by and on behalf of the MISRA C Working Group
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)