TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
C++ Coding Standard
Search

Rule:  POR#031Checked automatically with code checker

Synopsis:Do not depend on implementation defined behavior of shift operators for built-in types
Language:C++
Severity Level:5
Category:Portability


Description:

The right operand of a shift operator shall not be negative. The left operand of a shift operator shall not be signed. Left shift operators may cause information loss by truncation.