[previous] 1278 [next] Decimal constant includes a suffix.
Constants

This decimal integer constant includes a suffix.

Some coding standards recommend that casts should be used rather than suffixes to control the type of integer literal constants; however this practice is unusual.

For example:


/*PRQA S 2017,3120,3211,3408 ++*/

long         sla = 1234L;               /* Message 1278 */

unsigned int uia = 4567U;               /* Message 1278 */



No MISRA-C:2004 Rules applicable to message 1278


QA·C Source Code Analyser 8.1
MISRA-C:2004 Compliance Module 3.2
© 2012 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index | MISRA-C:2004 Rule Index Contents