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:
parent
dfbeffb0a0
commit
44ba47bddc
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user