Main Content
Invalid shift operations
Shift operations are invalid
Description
This check on shift operations on a variable var
determines:
Whether the shift amount is larger than the range allowed by the type of
var
.If the shift is a left shift, whether
var
is negative.
Diagnosing This Check
Examples
Check Information
Group: Numerical |
Language: C | C++ |
Acronym: SHF |