mirror of
https://github.com/lua/lua.git
synced 2026-06-08 08:03:49 +00:00
The multiplication (m*b) used to test whether 'm' is non-zero and 'm' and 'b' have different signs can underflow for very small numbers, giving a wrong result. The use of explicit comparisons solves this problem. This commit also adds several new tests for '%' (both for floats and for integers) to exercise more corner cases, such as very large and very small values.
28 KiB
28 KiB