aboutsummaryrefslogtreecommitdiff
path: root/pd/src/d_delay.c
diff options
context:
space:
mode:
Diffstat (limited to 'pd/src/d_delay.c')
-rw-r--r--pd/src/d_delay.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pd/src/d_delay.c b/pd/src/d_delay.c
index f14bb112..edcf1235 100644
--- a/pd/src/d_delay.c
+++ b/pd/src/d_delay.c
@@ -78,8 +78,7 @@ static t_int *sigdelwrite_perform(t_int *w)
while (n--)
{
float f = *in++;
- /* bash NANs and underflow/overflow hazards to zero */
- if (!((f > 1.0e-20f && f < 1.0e20f) || (f < -1e-20f && f > -1e20)))
+ if (PD_BADFLOAT(f))
f = 0;
*bp++ = f;
if (bp == ep)