fix typo in IEC-meter 'weird-float' protection.

This commit is contained in:
Robin Gareus
2013-08-29 18:46:03 +02:00
parent 2172700144
commit 14f5557bec
2 changed files with 2 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ void Iec1ppmdsp::process (float *p, int n)
float z1, z2, m, t;
z1 = _z1 > 20 ? 20 : (_z1 < 0 ? 0 : _z1);
z1 = _z2 > 20 ? 20 : (_z2 < 0 ? 0 : _z2);
z2 = _z2 > 20 ? 20 : (_z2 < 0 ? 0 : _z2);
m = _res ? 0: _m;
_res = false;

View File

@@ -46,7 +46,7 @@ void Iec2ppmdsp::process (float *p, int n)
float z1, z2, m, t;
z1 = _z1 > 20 ? 20 : (_z1 < 0 ? 0 : _z1);
z1 = _z2 > 20 ? 20 : (_z2 < 0 ? 0 : _z2);
z2 = _z2 > 20 ? 20 : (_z2 < 0 ? 0 : _z2);
m = _res ? 0: _m;
_res = false;