![]() |
![]() |
1280 | ![]() |
||||
![]() | |||||||
| Constants | REFERENCE - ISO:C90-6.1.3.1 (Floating Constants) & 6.1.3.2 (Integer Constants) | ||||||
A lower-case 'l' (rather than an upper-case "L") has been used as a suffix in this constant. This can easily be confused with "1" (number one) and should therefore be avoided. For example:
/*PRQA S 1278,2017,3120,3121,3211,3408 ++*/
long sla = 1234l; /* Message 1280 */
long slb = 1234L; /* OK */
long double lda = 1234.2l; /* Message 1280 */
long double ldb = 1234.2L; /* OK */
MISRA C:2012 Rules applicable to message 1280:
| Rule-7.3 (Required) | The lowercase character "l" shall not be used in a literal suffix |
![]() | ||
| QA·C Source Code Analyser 8.1
MISRA C:2012 Compliance Module 1.0 © 2012 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | MISRA C:2012 Rule Index | Contents |