...
CERT C++ Secure Coding Standard | EXP15-CPP. Beware of integer promotion when performing bitwise operations on chars or shorts |
---|---|
MISRA-C | Rule 10.5 (required): If the bitwise operators ~ and << are applied to an operand of underlying type unsigned char or unsigned short, the result shall be immediately cast to the underlying type of the operand |