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/diag~.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/diag~.c') diff --git a/modules/diag~.c b/modules/diag~.c index 1e6bd96..c8a94c5 100644 --- a/modules/diag~.c +++ b/modules/diag~.c @@ -68,7 +68,7 @@ static void diag_time(t_diag *x, t_floatarg index, t_floatarg time) time *= 0.001; if (time < 0.0f) time = 0.0f; - r = pow(0.001f, (float)x->x_ctl.c_order / (time * sys_getsr())); + r = pow(0.001f, (t_float)x->x_ctl.c_order / (time * sys_getsr())); if (r < 0.0f) r = 0.0f; if (r > 1.0f) r = 1.0f; @@ -105,8 +105,8 @@ static t_int *diag_perform(t_int *w) { - t_float *in = (float *)(w[3]); - t_float *out = (float *)(w[4]); + t_float *in = (t_float *)(w[3]); + t_float *out = (t_float *)(w[4]); t_diagctl *ctl = (t_diagctl *)(w[1]); t_float *eigen = ctl->c_eigen; -- cgit v1.2.1