This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

integer conversion resulted in a change of sign

Hello,

I am using CCS 6.1.2 and the microprocessor is TMS320F28377S

and getting warnings in the following code.

(.h file)

 #define parameter1 (0xff*256+249)

-----------------------------------------------------

(.c file)

unsigned long message1;

..

message1 = parameter1;

------------------------------------------------------

I keep getting the 2 warnings,

"integer conversion resulted in a change of sign" and "integer operation result is out of range".

'0xff*256+249' is 153,075 in my calculation, which I think can be fit in the 'unsigned long'.

but, there is no further clues for me.

Any advice would be great helpful,

Regards,