lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> 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