mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-26 23:05:38 +00:00
more arithmetic overflow warns
(cherry picked from commit 3974775b9c6bc49fba7295dcdd35e8f2cc06a0c9)
This commit is contained in:
parent
0ce2da3a23
commit
e386a360ca
5 changed files with 15 additions and 15 deletions
|
|
@ -201,7 +201,7 @@ inline TerrainSquare* TerrainFile::findSquare( U32 level, U32 x, U32 y ) const
|
|||
x >>= level;
|
||||
y >>= level;
|
||||
|
||||
return mGridMap[level] + x + ( y << ( mGridLevels - level ) );
|
||||
return mGridMap[level] + x + U64( y << U32( mGridLevels - level ) );
|
||||
}
|
||||
|
||||
inline void TerrainFile::setHeight( U32 x, U32 y, U16 height )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue