Hi,
CCS 5.3.0.00090, CGT 5.0.1
Hi I get a false positive for MISRA 12.9 on the following code snippet, assigning a minimum signed long value ( -2147483648) to a signed long. Assigning the minimum value plus one ( -2147483647) is valid.
Is there a compile fault in recognising the validity of -2147483648?
signed long sint32var;
sint32var = -2147483648L; // #1408-D (MISRA-C:2004 12.9/R) The unary minus operator shall not be applied to an expression whose underlying type is unsigned
sint32var = -2147483647L;
Regards, Tony.