C/C++ Compiler (cl.hlp) (Table of Contents; Topic list)
C4307
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     Compiler warning (level 1) C4307
 
     'operator' : integral constant overflow; result truncated
 
     An expression using the specified operator resulted in an
     integral constant that overflowed the space allocated for it.
 
     The value of the constant was truncated.
 
     It may be necessary to use a larger type to hold the constant.
 
     The following example causes this warning:
 
          int i = 20000 + 20000;            // warning
          int j = (unsigned)20000 + 20000;  // OK
                                    -♦-