Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 578 Bytes

compiler-warning-level-2-c4309.md

File metadata and controls

24 lines (20 loc) · 578 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Warning (level 2) C4309
Compiler Warning (level 2) C4309
11/04/2016
C4309
C4309
cb3f41ef-fd8a-4def-baa1-924e751fca68

Compiler Warning (level 2) C4309

'conversion' : truncation of constant value

The type conversion causes a constant to exceed the space allocated for it. You may need to use a larger type for the constant.

The following sample generates C4309:

// C4309.cpp
// compile with: /W2
int main()
{
   char c = 128;   // C4309
}