aboutsummaryrefslogtreecommitdiff
path: root/pd/src/d_array.c
diff options
context:
space:
mode:
authorGuenter Geiger <ggeiger@users.sourceforge.net>2002-11-25 10:47:53 +0000
committerGuenter Geiger <ggeiger@users.sourceforge.net>2002-11-25 10:47:53 +0000
commit5aef03b3a165b309622f6d051bd4d53c42b4532d (patch)
tree808a2924e736f3327c968f0868fd1efdbc3a1aec /pd/src/d_array.c
parentb09bea965d034a8e092b35d369f2ef6591ef0e65 (diff)
This commit was generated by cvs2svn to compensate for changes in r232,
which included commits to RCS files with non-trunk default branches. svn path=/trunk/; revision=233
Diffstat (limited to 'pd/src/d_array.c')
-rw-r--r--pd/src/d_array.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/pd/src/d_array.c b/pd/src/d_array.c
index 3491ad35..e870b522 100644
--- a/pd/src/d_array.c
+++ b/pd/src/d_array.c
@@ -52,8 +52,7 @@ static t_int *tabwrite_tilde_perform(t_int *w)
while (nxfer--)
{
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;
*fp++ = f;
}
@@ -735,8 +734,7 @@ static t_int *tabsend_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;
*dest++ = f;
}