Adam Bailey a5b03a34c3 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-11 12:53:33 +02:00
..
2019-12-23 00:22:07 +01:00
2023-05-24 19:26:32 +01:00
2019-10-19 12:49:11 +02:00
2023-05-18 10:14:13 +02:00
2023-05-19 12:07:14 +02:00
2021-12-13 13:48:08 +01:00
2023-05-18 10:14:13 +02:00
2023-05-18 14:26:48 +02:00