lua-users home
lua-l archive

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

The patch should kick out of the integer realm at the boundary of
floating-point precision not at the boundary of integer precision. Thus,
calculating 2 ^ 63 should result in the value being stored as a double even
though it could fit into a 64-bit integer.

This still gets you a lot more integer precision than a lot of code is used
to working with since 32-bit integers are more or less the norm.

If one were to make this change, then I think it would achieve the property
that Lua's execution would be indistinguishable whether the patch was
installed or not which I think would be a good thing.