![]() |
![]() |
4532 | ![]() |
||||
![]() | |||||||
| Arithmetic type - Operands | |||||||
This message is issued whenever an expression of essentially signed type has been used as an operand of a bitwise operator. For example:
/*PRQA S 1-9999 ++*/
/*PRQA S 4532-4599 --*/
void f4532 (int a)
{
a & 1u; /* 4532 */
a | 1u; /* 4532 */
~a; /* 4532 */
a >> 1u; /* 4533 */
1u << a; /* 4534 */
}
See also:
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |