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.
C4308
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     Compiler warning (level 2) C4308
 
     negative integral constant converted to unsigned type
 
     An expression required that a negative integral constant be
     converted to an unsigned type.
 
     The result of the expression is probably meaningless.
 
     The following example causes this warning:
 
          unsigned int i = 20000 + (-5);   // warning
                                    -♦-