dxx-rebirth/common
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 Pass destination bitmap to scale_bitmap 2017-02-11 21:42:34 +00:00
3d Pass canvas to g3_draw_bitmap 2017-02-11 21:42:42 +00:00
arch Fix 'declaration shadows a field of 'dcx::ogl_sync'' warning 2017-01-13 12:30:09 +08:00
editor Cache canvas in print_clock 2017-02-11 21:42:34 +00:00
include Use stdint constants for some INT*_MAX 2017-02-22 03:05:43 +00:00
main Reduce D1 spreadfire cost 2017-02-19 19:33:45 +00:00
maths Move EDITOR to dxxsconf.h; rename to DXX_USE_EDITOR 2016-09-11 18:49:16 +00:00
mem Use array<> for memdebug data 2016-10-29 23:16:15 +00:00
misc Fix check_header_includes=1 poison.h 2017-02-19 19:33:36 +00:00
texmap Pass canvas to gr_upoly_tmap 2017-02-11 21:42:40 +00:00
ui Cache canvas in ui_draw_checkbox 2017-02-11 21:42:46 +00:00