From 4a05094c9a009707674c079c0481eaf8e1f8490f Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Sat, 8 Oct 2011 17:22:41 +0000 Subject: 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 --- modules/abs~.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/abs~.c') 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; } -- cgit v1.2.1