mirror of https://github.com/ZDoom/raze-gles.git
- 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
|
@ -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 New Issue