[previous] 1280 [next] A lowercase letter L (l) has been used in an integer or floating suffix.
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           */


QA·C Source Code Analyser 8.1.2
© 2013 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index Contents