Microsoft KB Archive/120218

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 16:10, 18 July 2020 by 3155ffGd (talk | contribs) (importing KB archive)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Article ID: 120218

Article Last Modified on 7/5/2005



APPLIES TO

  • Microsoft Visual C++ 2.0 Professional Edition
  • Microsoft Visual C++ 4.0 Standard Edition
  • Microsoft Visual C++ 4.1 Subscription
  • Microsoft Visual C++ 4.2 Professional Edition
  • Microsoft Visual C++ 5.0 Standard Edition
  • Microsoft Visual C++ 4.0 Cross Development Edition for Macintosh



This article was previously published under Q120218

SYMPTOMS

The following warning is generated when the sample code listed in the More Information section below is compiled with the option /Op and the warning level set to 3 or higher:

warning C4056 : overflow in floating-point constant arithmetic

RESOLUTION

Ignore the warning as it is generated incorrectly. Alternatively, you can suppress the warning by using the /W2 option.

STATUS

This bug was corrected in Microsoft Visual C++, version 6.0.

MORE INFORMATION

Sample Code to Reproduce Problem

/* Compile options needed:   /Op /W3
*/ 

void main()
{
   double i;
   i = -1.0;
}
                


Additional query words: 9.00 10.00 10.10 10.20

Keywords: kbbug kbfix kbvc600fix KB120218