This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

shift operator

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 ?

0