![]() |
![]() |
4340 | ![]() |
||||
![]() | |||||||
| Arithmetic type - Casts | |||||||
This message is issued whenever an expression of essentially unsigned type has been cast to Boolean type. For example:
/*PRQA S 1-9999 ++*/
/*PRQA S 4340 --*/
void foo (_Bool b);
_Bool f4340 (unsigned short a)
{
foo ((_Bool) a); /* 4340 */
foo ((_Bool) (a + 1u)); /* 4340 */
return ((_Bool) a); /* 4340 */
}
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |