1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-06-02 23:12:26 -04:00

Fix msvc compiler warnings

This commit is contained in:
Jon Beniston 2021-03-05 13:59:33 +00:00
parent dfbeffb0a0
commit 44ba47bddc

View File

@ -65,10 +65,12 @@ private:
void phaseWrap() void phaseWrap()
{ {
while (m_phase > (2 * M_PI)) const float two_pi = (float)(2.0 * M_PI);
m_phase -= 2 * M_PI;
while (m_phase < (-2 * M_PI)) while (m_phase > two_pi)
m_phase += 2 * M_PI; m_phase -= two_pi;
while (m_phase < -two_pi)
m_phase += two_pi;
} }
void frequencyLimit() void frequencyLimit()