We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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