dxx-rebirth/similar/main
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
..
ai.cpp Never pass nullptr to ai_door_is_openable 2017-02-19 19:33:45 +00:00
aipath.cpp
automap.cpp Use stdint constants for some INT*_MAX 2017-02-22 03:05:43 +00:00
bm.cpp Pass polymodel &to free_model 2017-02-19 19:33:44 +00:00
cntrlcen.cpp
collide.cpp Use stdint constants for some INT*_MAX 2017-02-22 03:05:43 +00:00
config.cpp
console.cpp
controls.cpp
credits.cpp
digiobj.cpp
dumpmine.cpp
effects.cpp
endlevel.cpp Use stdint constants for some INT*_MAX 2017-02-22 03:05:43 +00:00
fireball.cpp Use unsigned for sides/verts in more places 2017-02-19 19:33:38 +00:00
fuelcen.cpp Fix check_header_includes=1 poison.h 2017-02-19 19:33:36 +00:00
fvi.cpp Simplify use of get_num_faces 2017-02-19 19:33:38 +00:00
game.cpp Exit GameProcessFrame() when game over 2017-02-20 08:04:55 +08:00
gamecntl.cpp Use stdint constants for some INT*_MAX 2017-02-22 03:05:43 +00:00
gamefont.cpp
gamemine.cpp Use unsigned for sides/verts in more places 2017-02-19 19:33:38 +00:00
gamerend.cpp
gamesave.cpp
gameseg.cpp Factor out template functor of create_vertex_lists_by_predicate 2017-02-19 19:33:38 +00:00
gameseq.cpp Use stdint constants for some INT*_MAX 2017-02-22 03:05:43 +00:00
gauges.cpp Use mask for Secondary_last_was_super 2017-02-19 19:33:45 +00:00
hostage.cpp
hud.cpp
iff.cpp Initialize grs_main_bitmap at construction 2017-01-28 18:12:20 +00:00
inferno.cpp Add hack to compensate for memdebug premature scan 2016-12-08 03:32:06 +00:00
kconfig.cpp
kmatrix.cpp Pass canvas to LINE_SPACING 2017-02-11 21:42:42 +00:00
laser.cpp Reduce D1 spreadfire cost 2017-02-19 19:33:45 +00:00
lighting.cpp Use unsigned for sides/verts in more places 2017-02-19 19:33:38 +00:00
menu.cpp Pass canvas to draw_model_picture 2017-02-19 19:33:44 +00:00
mglobal.cpp
mission.cpp
morph.cpp Use stdint constants for some INT*_MAX 2017-02-22 03:05:43 +00:00
multi.cpp
multibot.cpp Use stdint constants for some INT*_MAX 2017-02-22 03:05:43 +00:00
net_udp.cpp
newdemo.cpp
newmenu.cpp
object.cpp Pass canvas to draw_polygon_model 2017-02-19 19:33:43 +00:00
paging.cpp
physics.cpp Simplify use of get_num_faces 2017-02-19 19:33:38 +00:00
piggy.cpp
player.cpp
playsave.cpp
polyobj.cpp Pass polymodel &to free_model 2017-02-19 19:33:44 +00:00
powerup.cpp
render.cpp Use stdint constants for some INT*_MAX 2017-02-22 03:05:43 +00:00
robot.cpp
scores.cpp
segment.cpp
slew.cpp
songs.cpp
state.cpp Use mask for Secondary_last_was_super 2017-02-19 19:33:45 +00:00
switch.cpp
terrain.cpp Use stdint constants for some INT*_MAX 2017-02-22 03:05:43 +00:00
texmerge.cpp
text.cpp
titles.cpp Pass canvas to draw_model_picture 2017-02-19 19:33:44 +00:00
vclip.cpp
vers_id.cpp
wall.cpp
weapon.cpp Reduce D1 spreadfire cost 2017-02-19 19:33:45 +00:00