RAD Studio
ContentsIndex
PreviousUpNext
W8055: Possible overflow in shift operation

The compiler detects cases where the number of bits shifted over is larger than the number of bits in the affected variable; for example:

char c;  c >> 16;
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!