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.
C2379
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     Compiler error C2379
 
     formal parameter 'number' has different type when promoted
 
     The type of the specified parameter is not compatible through
     default promotions with the type found in a previous declaration.
 
     For functions are compatible only if the types of each parameter
     are compatible after the application of default argument
     promotions.
 
     This is an error in ANSI C (/Za) and a warning when the Microsoft
     extension (/Ze) is used.
 
     The following example causes this error:
 
          void func();
          void func(char);     // error, char promotes to int
                                    -♦-