![]() |
![]() |
1812 | ![]() |
||||
![]() | |||||||
| Arithmetic type - Balancing | |||||||
This message is issued whenever an expression of essentially character type is subtracted from an expression of essentially unsigned type. For example:
/*PRQA S 1-9999 ++*/
/*PRQA S 1812 --*/
unsigned f1812 (unsigned a, char b)
{
b = b - a; /* OK, essential type of RHS is char */
return a - b; /* 1812 */
}
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |