C/C++ Compiler (cl.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
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
                                    -♦-