summaryrefslogtreecommitdiff
path: root/media
diff options
context:
space:
mode:
authorCharles Pigott <charlespigott@googlemail.com>2021-07-19 12:41:31 +0100
committerCharles Pigott <charlespigott@googlemail.com>2021-07-20 10:42:03 +0100
commit1e439979f7e359543fdb0c86238d51f64e161625 (patch)
tree86e8ff5dedf052df5157a24d9939c1a3449fbaf8 /media
parent9b0bb21f3b0cb9fb29ef7413900752eca5421b2a (diff)
downloadopenttd-1e439979f7e359543fdb0c86238d51f64e161625.tar.xz
Fix: OverflowSafeInt negation not handling INT64_MIN
INT64_MIN negated is above INT64_MAX, and would overflow. Instead, when negating INT64_MIN make it INT64_MAX. This does mean that -(-(INT64_MIN)) != INT64_MIN.
Diffstat (limited to 'media')
0 files changed, 0 insertions, 0 deletions