Export (0) Print
Expand All
Expand Minimize
8 out of 19 rated this helpful - Rate this topic

Compiler Warning (level 2) C4309

Error Message

'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
}
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.