mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
- binaryangle.h: Return BAngToBAM()
as int64_t
to handle signed values without overflowing on unsigned values.
This commit is contained in:
parent
ea2e4051f1
commit
3f14886830
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ inline double bcosf(const double ang, const int8_t shift = 0)
|
|||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
inline constexpr uint32_t BAngToBAM(int ang)
|
||||
inline constexpr int64_t BAngToBAM(int ang)
|
||||
{
|
||||
return ang << BAMBITS;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue