aboutsummaryrefslogtreecommitdiff
path: root/modules/abs~.c
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2011-10-08 17:22:41 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2011-10-08 17:22:41 +0000
commit4a05094c9a009707674c079c0481eaf8e1f8490f (patch)
treed63533d6b056451337017faa6deb69ea55788c2e /modules/abs~.c
parentc39d22e4bd9c3b06c4199ea59d0a7faa51401f7f (diff)
converted float to t_float to support double-precision Pd, creb still needs to separate t_float and t_sample tho
svn path=/trunk/externals/creb/; revision=15546
Diffstat (limited to 'modules/abs~.c')
-rw-r--r--modules/abs~.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/abs~.c b/modules/abs~.c
index 0cb3d4d..71c57ef 100644
--- a/modules/abs~.c
+++ b/modules/abs~.c
@@ -16,12 +16,12 @@ typedef struct _abs
static t_int *abs_perform(t_int *w)
{
t_abs *x = (t_abs *)(w[1]);
- t_float *in = (t_float *)(w[2]);
- t_float *out = (t_float *)(w[3]);
+ t_sample *in = (t_sample *)(w[2]);
+ t_sample *out = (t_sample *)(w[3]);
int n = (int)(w[4]);
while (n--)
{
- float f = *in++;
+ t_sample f = *in++;
if (f < 0) f = -f;
*out++ = f;
}