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