16-10-2019, 11:05 AM
The first two are compliant, as they are performed as u32.
The four shift operators are compliant for this rule as they have the underlying type of the left argument, but may run into the rule about not shifting more than the length of the left operand (5-8-1), and 5-0-21 bans shifting of signed values.
The four shift operators are compliant for this rule as they have the underlying type of the left argument, but may run into the rule about not shifting more than the length of the left operand (5-8-1), and 5-0-21 bans shifting of signed values.
Posted by and on behalf of
the MISRA C++ Working Group
the MISRA C++ Working Group