VMS Help  —  CC  Messages  SWITCHLONG
 Message        The signed or unsigned long expression "<expression>"
                is used in a switch statement.

 Description    A switch value has an integer type of signed or
                unsigned long int.  While this is perfectly portable
                under the C standard, the original K&R definition of
                C required that the expression have type int.  HP C
                accepts this usage in all modes, but there may be
                older C compilers that require type int in this
                context.

 User Action    Be aware that older, non-standard compilers might not
                accept this construct, or force the result to type
                int.
Close Help