[Bug 48324] cl.exe fails to compile c++ due to error C2177: constant too big on float constant

WineHQ Bugzilla wine-bugs at winehq.org
Sat Dec 21 18:24:56 CST 2019


https://bugs.winehq.org/show_bug.cgi?id=48324

Erich E. Hoover <erich.e.hoover at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |erich.e.hoover at gmail.com

--- Comment #1 from Erich E. Hoover <erich.e.hoover at gmail.com> ---
Wow.
1) I'm surprised that it's using atof (which is for doubles)
2) I'm surprised that this value works on Windows, since it's greater than
FLT_MAX (3.402823466e+38F)

My guess would be that the value is being treated as a double, my new
calculation is somewhat different from whatever MS does, and then when it gets
typecast to a float it ends up slightly larger than what is allowed for
FLT_MAX.  Is this number from someplace special?  Is there are a reason your
application does not use FLT_MAX?

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list