30-11-2012, 01:27 PM
Both constants, 100 and 5000, have type int so Rule 10.6 does not apply to them.
However, both initialisations violate Rule 10.1 because the constant is being implicitly converted to an unsigned type.
However, both initialisations violate Rule 10.1 because the constant is being implicitly converted to an unsigned type.
Posted by and on behalf of the MISRA C Working Group