08e4a6e620
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:
|
||
---|---|---|
.. | ||
ai.cpp | ||
aipath.cpp | ||
automap.cpp | ||
bm.cpp | ||
cntrlcen.cpp | ||
collide.cpp | ||
config.cpp | ||
console.cpp | ||
controls.cpp | ||
credits.cpp | ||
digiobj.cpp | ||
dumpmine.cpp | ||
effects.cpp | ||
endlevel.cpp | ||
fireball.cpp | ||
fuelcen.cpp | ||
fvi.cpp | ||
game.cpp | ||
gamecntl.cpp | ||
gamefont.cpp | ||
gamemine.cpp | ||
gamerend.cpp | ||
gamesave.cpp | ||
gameseg.cpp | ||
gameseq.cpp | ||
gauges.cpp | ||
hostage.cpp | ||
hud.cpp | ||
iff.cpp | ||
inferno.cpp | ||
kconfig.cpp | ||
kmatrix.cpp | ||
laser.cpp | ||
lighting.cpp | ||
menu.cpp | ||
mglobal.cpp | ||
mission.cpp | ||
morph.cpp | ||
multi.cpp | ||
multibot.cpp | ||
net_udp.cpp | ||
newdemo.cpp | ||
newmenu.cpp | ||
object.cpp | ||
paging.cpp | ||
physics.cpp | ||
piggy.cpp | ||
player.cpp | ||
playsave.cpp | ||
polyobj.cpp | ||
powerup.cpp | ||
render.cpp | ||
robot.cpp | ||
scores.cpp | ||
segment.cpp | ||
slew.cpp | ||
songs.cpp | ||
state.cpp | ||
switch.cpp | ||
terrain.cpp | ||
texmerge.cpp | ||
text.cpp | ||
titles.cpp | ||
vclip.cpp | ||
vers_id.cpp | ||
wall.cpp | ||
weapon.cpp |