Part Number: TMS320F28075
Tool/software:
Hi,
We are using CCS 9.0.1.00004 , Compiler version TI v18.1.2.LTS,
We would like to activate the following option: "-Wsign-compare" or equivalent if this does not exists in our case.
The underlining reason for it was that we saw the sometimes a comparison between negative signed integer and a positive unsinged would result in negative being larger the the positive (we assume implicit conversion)
the following is an example for this case:
int one = -5;
unsigned int two = 5;
if(one > two)
{
one++;
one++;
one++;
}
Thanks,