Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 821 Bytes

compiler-warning-level-1-c4369.md

File metadata and controls

26 lines (21 loc) · 821 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Warning (level 1) C4369
Compiler Warning (level 1) C4369
11/04/2016
C4369
C4369
ade87e84-36be-4e00-be99-2930af848feb

Compiler Warning (level 1) C4369

'enumerator' : enumerator value 'value' cannot be represented as 'type', value is 'new_value'

An enumerator was calculated to be greater than the greatest value for the specified underlying type. This caused an overflow and the compiler wrapped the enumerator value to the lowest possible value for the type.

Example

The following sample generates C4369.

// C4369.cpp
// compile with: /W1
int main() {
   enum Color: char { red = 0x7e, green, blue };   // C4369
   enum Color2: char { red2 = 0x7d, green2, blue2};   // OK
}