[previous] 3606 [next] This unsuffixed decimal constant has type 'long', but had type 'unsigned int' in K&R C.
K+R compatibility REFERENCE - ISO:C90-6.1.3.2 Integer Constants - Semantics

This unsuffixed decimal constant is of type long but would have been treated as an unsigned int in pre-ISO versions of the C language.

For example:


/*PRQA S 1255,3120,3211,3408 ++*/
/****************************
 * OPTIONS: -s int=16
 ****************************/

    long d1 = 32767;                    /*              */
    long d2 = 32768;                    /* Message 3606 */
    long d3 = 32769;                    /* Message 3606 */
    long d4 = 65535;                    /* Message 3606 */
    long d5 = 65536;                    /*              */

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