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.

CCS/MSP430G2553: CCStudio 6.2 long int issue

Part Number: MSP430G2553
Other Parts Discussed in Thread: CCSTUDIO

Tool/software: Code Composer Studio

I am using CCStudio 6.2 64 bit . The program goes like

long int d2;

int d1 = -961;

d2 = 987 * d1;

The correct result for d2 to be displayed is - 948507.(   11111111111100011000011011100101   )

                                                    But it displays  -31003   ( 111111111111111111000011011100101    ).

What is the issue here, since d2 has already been declared as long..?