dxx-rebirth/common/include
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
..
editor Use unsigned for sides/verts in more places 2017-02-19 19:33:38 +00:00
3d.h Pass canvas to g3_check_and_draw_poly 2017-02-11 21:42:42 +00:00
args.h Rename MAX_JOYSTICKS to DXX_MAX_JOYSTICKS 2016-09-25 04:52:48 +00:00
byteutil.h Move endian handling into SConf 2016-10-09 17:35:03 +00:00
compiler-addressof.h
compiler-array.h Remove support for array other than std::array 2016-07-31 22:25:49 +00:00
compiler-begin.h
compiler-exchange.h
compiler-integer_sequence.h
compiler-lengthof.h
compiler-make_unique.h
compiler-poison.h Fix check_header_includes=1 poison.h 2017-02-19 19:33:36 +00:00
compiler-range_for.h Require C++11 range-based for 2016-08-08 00:07:19 +00:00
compiler-static_assert.h Make assert_equal inherit integral_constant 2016-07-15 03:43:01 +00:00
compiler-type_traits.h Move <type_traits> test to Cxx11RequiredFeature 2016-08-08 00:07:20 +00:00
console.h Prefer DXX_CONSTANT_TRUE over DXX_HAVE_BUILTIN_CONSTANT_P 2016-11-12 18:10:09 +00:00
countarray.h Expand single-use typedef in place 2016-09-11 18:49:13 +00:00
cpp-valptridx.h Split valptridx declarations 2016-12-24 18:12:17 +00:00
digi_audio.h Move some digi symbols to dcx 2016-07-15 03:43:02 +00:00
digi_mixer.h Move some digi symbols to dcx 2016-07-15 03:43:02 +00:00
digi_mixer_music.h
dsx-ns.h Add preprocessor hook for selective dsx migration 2016-10-02 19:35:35 +00:00
dxxerror.h Scrub invalid primary textures at level load 2016-12-22 05:21:16 +00:00
event.h Change window_event_result back to a uint8_t with the only forward declaration in fwd-event.h and fix the errors that result. 2016-10-31 10:17:54 +08:00
fmtcheck.h Prefer DXX_CONSTANT_TRUE over DXX_HAVE_BUILTIN_CONSTANT_P 2016-11-12 18:10:09 +00:00
func.h
fwd-event.h Include cstdint in common/include/fwd-event.h instead of pstypes.h to only include required uint8_t 2016-11-06 13:44:29 +08:00
fwd-gr.h Pass font to gr_get_string_wrap 2017-02-11 21:42:44 +00:00
fwd-partial_range.h
fwd-valptridx.h Fix check_header_includes=1 fwd-valptridx.h 2017-02-19 19:33:36 +00:00
fwd-vecmat.h Move EDITOR to dxxsconf.h; rename to DXX_USE_EDITOR 2016-09-11 18:49:16 +00:00
fwd-window.h Use virtual function to dispatch window events 2016-11-19 17:24:52 +00:00
gr.h Pass canvas to gr_set_curfont 2017-02-11 21:42:38 +00:00
grdef.h Expand GHEIGHT 2017-02-11 21:42:42 +00:00
hash.h
hmp.h
iff.h Convert various static const expressions to constexpr 2016-07-16 16:52:04 +00:00
ignorecase.h
internal.h Remove obsolete ogl_pal 2017-02-11 21:42:31 +00:00
interp.h Pass canvas to g3_draw_polygon_model 2017-02-11 21:42:40 +00:00
joy.h Merging in unification/master, resolving conflict in similar/main/kmatrix.cpp 2016-11-06 14:20:18 +08:00
jukebox.h
key.h Pass the most significant window_event_result to the caller of event_process 2016-10-28 14:43:20 +08:00
loadgl.h Convert loadgl.h dll_GetSymbol calls to reinterpret_cast 2016-09-09 01:35:43 +00:00
makesig.h Rewrite parenthesized uses of old-style numeric casts to static_cast 2016-07-31 22:25:49 +00:00
maths.h Remove useless cast in f2db 2016-07-15 03:43:02 +00:00
messagebox.h
mouse.h Pass the most significant window_event_result to the caller of event_process 2016-10-28 14:43:20 +08:00
ntstring.h
null_sentinel_iterator.h
ogl_extensions.h Unify OpenGL extension handling between OpenGL and OpenGL ES code paths. 2016-11-03 21:59:11 +01:00
ogl_init.h Pass canvas to g3_draw_tmap_2 2017-02-11 21:42:41 +00:00
ogl_sync.h
pack.h Remove unused inherit_void_ptr_handler 2016-07-15 03:43:01 +00:00
palette.h Move OGL to dxxsconf.h; rename to DXX_USE_OGL 2016-09-24 18:06:11 +00:00
partial_range.h Prefer DXX_CONSTANT_TRUE over DXX_HAVE_BUILTIN_CONSTANT_P 2016-11-12 18:10:09 +00:00
pcx.h Fix various check_header_includes=1 failures 2016-12-05 00:26:11 +00:00
physfs-serial.h
physfs_list.h Expand single-use typedef in place 2016-09-11 18:49:13 +00:00
physfsx.h Require support for reference qualified methods 2016-12-10 17:51:07 +00:00
pstypes.h Change window_event_result back to a uint8_t with the only forward declaration in fwd-event.h and fix the errors that result. 2016-10-31 10:17:54 +08:00
rbaudio.h
reverse.h
rle.h Fix check_header_includes=1 poison.h 2017-02-19 19:33:36 +00:00
serial.h Add special case to make past releases not die on various segnums 2017-01-21 19:05:43 +00:00
strutil.h Move strutil qsort comparator casts into function 2016-09-04 19:10:42 +00:00
texmap.h Pass canvas to draw_tmap{,_flat} 2017-02-11 21:42:39 +00:00
timer.h
u_mem.h
ui.h Pass canvas to ui_string_centered 2017-02-11 21:42:36 +00:00
valptridx.h Fix check_header_includes=1 poison.h 2017-02-19 19:33:36 +00:00
varutil.h
vecmat.h Use stdint constants for some INT*_MAX 2017-02-22 03:05:43 +00:00
window.h Fix memory corruption starting multiplayer game 2016-11-19 18:09:26 +00:00