1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-08-14 23:43:43 -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
+6 -4
View File
@@ -65,10 +65,12 @@ private:
void phaseWrap()
{
while (m_phase > (2 * M_PI))
m_phase -= 2 * M_PI;
while (m_phase < (-2 * M_PI))
m_phase += 2 * M_PI;
const float two_pi = (float)(2.0 * M_PI);
while (m_phase > two_pi)
m_phase -= two_pi;
while (m_phase < -two_pi)
m_phase += two_pi;
}
void frequencyLimit()