|
VMS Help CC, Messages, ENUMSANDINT *Conan The Librarian |
Message <Context> allowing an enumeration type and a signed
int to be compatible may not be portable.
Description The standard states that enumeration types shall be
compatible with an integer type. HP C, along with
most other C compilers, has chosen the signed int
type to be compatible with enumeration types. Other
compilers may chose another type such as unsigned int
(the C standard even allows an implementation to
choose different integer types depending on the
values of the enumeration constants defined for the
type). Therefore this program may not be accepted by
other C compilers.
User Action Insert a cast to make the types the same.
|
|