aboutsummaryrefslogtreecommitdiff
path: root/pd/src/d_global.c
diff options
context:
space:
mode:
authorGuenter Geiger <ggeiger@users.sourceforge.net>2004-02-02 11:28:02 +0000
committerGuenter Geiger <ggeiger@users.sourceforge.net>2004-02-02 11:28:02 +0000
commitae6b5d89ea93b95c2990895077cf5e8f0bba9ad9 (patch)
tree1e7570f11ac688e94342968e90301c4684e61193 /pd/src/d_global.c
parentf26399eba6ee6ce9eb7bae9a4b60a90dc2ebca94 (diff)
This commit was generated by cvs2svn to compensate for changes in r1301,
which included commits to RCS files with non-trunk default branches. svn path=/trunk/; revision=1302
Diffstat (limited to 'pd/src/d_global.c')
-rw-r--r--pd/src/d_global.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/pd/src/d_global.c b/pd/src/d_global.c
index a84a1ae0..d764ee1b 100644
--- a/pd/src/d_global.c
+++ b/pd/src/d_global.c
@@ -40,11 +40,9 @@ static t_int *sigsend_perform(t_int *w)
int n = (int)(w[3]);
while (n--)
{
- float f = *in++;
- if (PD_BADFLOAT(f))
- f = 0;
-
- *out++ = f;
+ *out = (PD_BADFLOAT(*in) ? 0 : *in);
+ out++;
+ in++;
}
return (w+4);
}
@@ -244,10 +242,9 @@ static t_int *sigthrow_perform(t_int *w)
{
while (n--)
{
- float f = *in++;
- if (PD_BADFLOAT(f))
- f = 0;
- *out++ += f;
+ *out += (PD_BADFLOAT(*in) ? 0 : *in);
+ out++;
+ in++;
}
}
return (w+4);