aboutsummaryrefslogtreecommitdiff
path: root/itov.c
diff options
context:
space:
mode:
Diffstat (limited to 'itov.c')
-rw-r--r--itov.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/itov.c b/itov.c
index 97f5280..c2c027b 100644
--- a/itov.c
+++ b/itov.c
@@ -11,16 +11,16 @@ typedef struct _itov
t_outlet *f_out1;
t_outlet *f_out2;
t_outlet *f_out3;
- float m_lo;
- float m_hi;
- float m_scale;
+ t_float m_lo;
+ t_float m_hi;
+ t_float m_scale;
int m_nbins;
} t_itov;
static void itov_perform_float(t_itov *x, t_float j)
{
- float i;
+ t_float i;
j-=1.0f;
j=(j>0)?(j<x->m_nbins?j:x->m_nbins-1):0; // limit without IF
@@ -54,7 +54,7 @@ static void itov_set(t_itov *x, t_float lo, t_float hi, t_float nbins)
x->m_hi=hi;
x->m_lo=lo;
x->m_nbins=(int)nbins;
- x->m_scale=(float)x->m_nbins/(hi-lo);
+ x->m_scale=(t_float)x->m_nbins/(hi-lo);
}
static void *itov_new(t_float lo, t_float hi, t_float nbins)