Export (0) Print
Expand All
Expand Minimize

Compiler Warning (level 1) C4719 (Windows CE 5.0)

Windows CE 5.0
Send Feedback

Double constant found when Qfast specified - use'f' as a suffix to indicate single precision

This warning is SH4-specific, and occurs only when compiling with the -Qfast compiler option.

A non-integer type constant has used in an expression involving floating-point values, and treated as a double, or a double variable has been compared to a floating-point constant.

The following example code shows one way this warning might occur:

int main(void)
{
   float x, y;
   x = 0.6; //warning
   y = x;
   return 0;
}

The following example shows a second way this warning might occur:

int main()
{
     float x=11.0e-3f;
     double y=x;

     return(y == 12.0e-3f); // warning
}

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.


Show:
© 2015 Microsoft