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/blocknorm~.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/blocknorm~.c') diff --git a/modules/blocknorm~.c b/modules/blocknorm~.c index 1c8e3df..5f90081 100644 --- a/modules/blocknorm~.c +++ b/modules/blocknorm~.c @@ -65,7 +65,7 @@ static t_int *blocknorm_perform(t_int *word) /* compute normalization */ if (p == 0.0f) s = 1.0f; - else s =sqrt(((float)(c * n)) / p); + else s =sqrt(((t_float)(c * n)) / p); /* normalize */ for (j=0;jMAXCHANNELS) i = MAXCHANNELS; x->x_ctl.c_channels = i; - x->x_ctl.c_input = malloc(sizeof(float)*i); - x->x_ctl.c_output = malloc(sizeof(float)*i); + x->x_ctl.c_input = malloc(sizeof(t_float)*i); + x->x_ctl.c_output = malloc(sizeof(t_float)*i); j = i; while (--j) inlet_new(&x->x_obj, &x->x_obj.ob_pd, -- cgit v1.2.1