Compiler Warning (level 2) C4307 (Windows CE 5.0)

Send Feedback

'operator' : integral constant overflow

The operator is used in an expression that results in an integer constant overflowing the space allocated for it. You may need to use a larger type for the constant. A signed int holds a smaller value than an unsigned int because the signed int uses one bit to represent the sign.

The following example shows how this message might occur.

int i = 2000000000 + 2000000000;            // warning
int j = (unsigned)2000000000 + 2000000000;  // OK

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.