dxx-rebirth/similar
Kp 08e4a6e620 Use stdint constants for some INT*_MAX
clang becomes confused trying to determine which vm_distance_squared
constructor to use for a literal input of 0x7fffffffffffffff, even
though the size of the input requires it to be `long` and only one
constructor can take a `long`.  Switch from an explicit
0x7fffffffffffffff to the symbolic constant INT64_MAX, which has the
same value, but a platform-appropriate suffix to force the compiler to
pick the right type.

For general clarity, switch some other instances of integer maximum
literals to symbolic constants of the same value.

This commit has no effect on the generated code (except for changes to
line numbers).

Reported-by: kreatordxx <https://github.com/dxx-rebirth/dxx-rebirth/pull/324>
Fixes: 17208cca79 ("Disallow int for vm_distance_squared")
2017-02-22 03:05:43 +00:00
..
2d Use cached canvas in gr_string 2017-02-11 21:42:46 +00:00
3d Pass canvas to g3_check_and_draw_poly 2017-02-11 21:42:42 +00:00
arch Pass canvas to LINE_SPACING 2017-02-11 21:42:42 +00:00
editor Use stdint constants for some INT*_MAX 2017-02-22 03:05:43 +00:00
main Use stdint constants for some INT*_MAX 2017-02-22 03:05:43 +00:00
misc Fix check_header_includes=1 poison.h 2017-02-19 19:33:36 +00:00