Hi,
I’m going to start working on a check on dangerous long casts, like pc lint warning 647.
e.g
int a = 105000;
int b = 25000;
long l = a*b; // possible truncation before conversion from ‘int’ to ‘long’
I’m thinking of adding this to the AnalyzeImplicitConversions function in SemaChecking.
I will also create a CheckExplicitConversions function for cases like.
(long) (n << 8)
Would this be a good place to put it?
//Anders