Compiler Warning (level 3) C4341

'identifier' : signed value is out of range for enum constant

A given enumerated constant exceeded the limit for an int. The value of the illegal constant is undefined.

Make sure that the given constants resolve to integers between – 32,768 and +32,767 (signed) or 0 and +65,535 (unsigned).

The following example generates this warning:

enum ELEMENTS
{
   Hydrogen = 1,
   Helium,
   Lithium,
   Beryllium,
   Impossibillium = 500000
} ;