aboutsummaryrefslogtreecommitdiff
path: root/src/sgn~.c
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2008-01-03 11:15:25 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2008-01-03 11:15:25 +0000
commit34a2ba5cba836ebc1211b33381c648160ca71ef5 (patch)
treebe8e947aea87766c519853e6ab8fc1bd71425194 /src/sgn~.c
parent9dd67c7311b245bb138545f097b60b07bb4976b5 (diff)
use t_float/t_sample instead of "float" and where appropriate
svn path=/trunk/externals/zexy/; revision=9111
Diffstat (limited to 'src/sgn~.c')
-rw-r--r--src/sgn~.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sgn~.c b/src/sgn~.c
index 2797916..501c1de 100644
--- a/src/sgn~.c
+++ b/src/sgn~.c
@@ -39,7 +39,8 @@ static t_int *sgnTilde_perform(t_int *w)
int n = (int)(w[3]);
t_sample x;
while (n--) {
- if ((x=*in++)>0.) *out++=1.;
+ x=*in++;
+ if (x>0.) *out++=1.;
else if (x<0.) *out++=-1.;
else *out++=0.;
}