From 7d41c2213b5070d444fa17cdb04eeb9fdc955309 Mon Sep 17 00:00:00 2001 From: Katja Date: Sun, 6 Nov 2011 15:38:24 +0000 Subject: made smlib compliant with double precision svn path=/trunk/externals/smlib/; revision=15707 --- itov.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'itov.c') 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)?(jm_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) -- cgit v1.2.1