diff options
author | Guenter Geiger <ggeiger@users.sourceforge.net> | 2002-11-25 10:47:53 +0000 |
---|---|---|
committer | Guenter Geiger <ggeiger@users.sourceforge.net> | 2002-11-25 10:47:53 +0000 |
commit | 5aef03b3a165b309622f6d051bd4d53c42b4532d (patch) | |
tree | 808a2924e736f3327c968f0868fd1efdbc3a1aec /pd/src/d_ctl.c | |
parent | b09bea965d034a8e092b35d369f2ef6591ef0e65 (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_ctl.c')
-rw-r--r-- | pd/src/d_ctl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pd/src/d_ctl.c b/pd/src/d_ctl.c index e143a067..461703d2 100644 --- a/pd/src/d_ctl.c +++ b/pd/src/d_ctl.c @@ -105,9 +105,9 @@ static t_int *line_perform(t_int *w) t_float *out = (t_float *)(w[2]); int n = (int)(w[3]); float f = x->x_value; - /* bash NANs and underflow/overflow hazards to zero */ - if (!((f > 1.0e-20f && f < 1.0e20f) || (f < -1e-20f && f > -1e20))) - x->x_value = f = 0; + + if (PD_BADFLOAT(f)) + x->x_value = f = 0; if (x->x_retarget) { int nticks = x->x_inletwas * x->x_msectodsptick; |