22-08-2006, 04:47 PM
MISRA-C meeting 22-8-2006
The type of the enumeration constant is defined by ISO to be signed int.
In your example, the switch selector has type unsigned int, and the case constants have type signed int. This is a violation of rule 10.1.
The type of the enumeration constant is defined by ISO to be signed int.
In your example, the switch selector has type unsigned int, and the case constants have type signed int. This is a violation of rule 10.1.
Posted by and on behalf of the MISRA C Working Group