20-02-2014, 08:49 AM
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.
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