Adam Bailey 5be1746bbd
lua: fix integer overflow in LNUM patch
Safely detect integer overflow in try_addint() and try_subint().
Old code relied on undefined behavior, and recent versions of GCC on x86
optimized away the if-statements.
This caused integer overflow in Lua code instead of falling back to
floating-point numbers.

Signed-off-by: Adam Bailey <aebailey@gmail.com>
(cherry picked from commit 3a2e7c30d3e6a187ba1df740cdb24c8ad84dfe48)
2023-08-12 08:07:01 +08:00
..
2019-12-23 00:22:07 +01:00
2022-01-10 20:26:41 +08:00
2019-10-19 12:49:11 +02:00
2021-02-14 19:38:15 +01:00
2019-08-16 22:53:06 +02:00
2023-06-17 18:31:10 +08:00
2021-12-13 14:01:11 +01:00
2020-08-31 10:19:31 +01:00
2021-03-15 21:53:16 +00:00