I have declared this variable : unsigned int Test;
To set de MSB, i can make so : Test |= 0x80000000; it works ok, but if I make so : Test |= (1 << 31), the realview compiler claims :
warning: #61-D: integer operation result is out of range warning: #68-D: integer conversion resulted in a change of sign
But the two instructions both set the MSB, why the latter result in warning ?
Thank you !