[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.2.2 (rc4) now available
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 26 Mar 2013 09:51:02 -0300
> what about this message?
> http://lua-users.org/lists/lua-l/2013-03/msg00708.html
>
> should we add cast to lmathlib.c(275) and loslib.c(268)?
This is not about "proper" Lua. We can add these casts in the next
release.
The first cast, for HUGE_VAL, seems to be pure pedantism of the compiler.
At least in IEEE 754, the conversion of HUGE_VAL to float does not lose
any "precision" (like a conversion of 1.0 from double to float).
About the second cast, we actually have not understood what is the issue.
-- Roberto