Hello,
I'm scanning a piece of legacy code with PC-lint. I get the following warning:
Warning 648: Overflow in computing constant for operation: 'multiplication'
for the following piece of code:
(unsigned int)(0-((full_pw+1)*2/10))
where
#define full_pw 19999 // for 100 Hz PWM signal
The playform is C166 based (int is 16 bit). I don't immediately see why this should generate a warning. Do you?
Thanks Per, that's it. Should have seen it; I guess that is what you get when you come to work with a flu and a fever...