- binaryangle.h: Return `BAngToBAM()` as `int64_t` to handle signed values without overflowing on unsigned values.

This commit is contained in:
Mitchell Richters 2020-11-23 10:49:47 +11:00
parent ea2e4051f1
commit 3f14886830
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}