When compiling with Realview :
unsigned long x;
x = 1<<31;
I get the message: Main.c(121): warning: #61-D: integer operation result is out of range Main.c(121): warning: #68-D: integer conversion resulted in a change of sign
When doing the same with C51 it gives no message. Any idea ?
The constant 1 is an integer, 1U is an unsigned integer, 1UL is an unsigned long integer.
Of course ! Thank you Dan