by "msolem" <msolem@[EMAIL PROTECTED]
>
Dec 16, 2005 at 08:53 AM
Ok, that makes sense, thanks. The warning does disappear if I do this:
var = (char)(var / 2);
But if it's the constant 2 that's causing the promotion, shouldn't this
also compile warning free (which it doesn't):
var = var / (char)2
I see that the HCS12 has no 8 bit divide assembly instruction. So in
some
sense I guess it gets promoted to 16 bit no matter what. Is that why
that line still produces the warning?
Mike