diff options
author | musil <tmusil@users.sourceforge.net> | 2006-11-10 14:31:45 +0000 |
---|---|---|
committer | musil <tmusil@users.sourceforge.net> | 2006-11-10 14:31:45 +0000 |
commit | 4902bb3bd0bba7839921baa099abe311f2e9391d (patch) | |
tree | 21f625ad1cd7198019c4e5d1fa74c9a7a63088dc /src/ambi_decode.c | |
parent | b7b733fcdb95dea0537f5db87b7917c293c5e30a (diff) |
makefile fno-strict-aliasing bug
float to t_float
svn path=/trunk/externals/iem/iem_ambi/; revision=6256
Diffstat (limited to 'src/ambi_decode.c')
-rw-r--r-- | src/ambi_decode.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/src/ambi_decode.c b/src/ambi_decode.c index 466244f..1481be3 100644 --- a/src/ambi_decode.c +++ b/src/ambi_decode.c @@ -3,19 +3,9 @@ iem_ambi written by Thomas Musil, Copyright (c) IEM KUG Graz Austria 2000 - 2005 */ -#ifdef NT -#pragma warning( disable : 4244 ) -#pragma warning( disable : 4305 ) -#endif - - #include "m_pd.h" #include "iemlib.h" #include <math.h> -#include <stdio.h> -#include <string.h> - - /* -------------------------- ambi_decode ------------------------------ */ /* @@ -325,7 +315,7 @@ static void ambi_decode_pinv(t_ambi_decode *x) at += 2; for(i=0; i<n; i++) { - SETFLOAT(at, (float)(*dv)); + SETFLOAT(at, (t_float)(*dv)); dv++; at++; } @@ -690,8 +680,8 @@ static void *ambi_decode_new(t_symbol *s, int argc, t_atom *argv) x->x_at = (t_atom *)getbytes((x->x_n_ls * x->x_n_ambi + 2) * sizeof(t_atom)); x->x_s_matrix = gensym("matrix"); /*change*/ - SETFLOAT(x->x_at, (float)x->x_n_ls); - SETFLOAT(x->x_at+1, (float)x->x_n_ambi); + SETFLOAT(x->x_at, (t_float)x->x_n_ls); + SETFLOAT(x->x_at+1, (t_float)x->x_n_ambi); x->x_sqrt3 = sqrt(3.0); x->x_sqrt5_2 = sqrt(5.0) / 2.0; x->x_sqrt6_4 = sqrt(6.0) / 4.0; |