Adam Bailey c29390b0f3 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 11:46:51 +02:00
..
2019-12-23 00:22:07 +01:00
2019-10-19 12:49:11 +02:00
2022-12-06 23:29:14 +01:00
2022-01-03 10:34:31 +01:00
2022-01-16 20:51:14 +01:00
2021-12-13 13:48:08 +01:00
2020-08-31 10:19:31 +01:00
2021-10-31 13:02:49 +00:00
2022-12-06 11:45:12 +01:00