diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2005-09-19 13:21:40 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2005-09-19 13:21:40 +0000 |
commit | 0b43ad9f37cb1982aeae4a288c645dde53d0385d (patch) | |
tree | 3ca57daac0630e6a0ca9d319f7ffd45bc5b5b4a1 /src | |
parent | abc25c283253082f33b9ad21f6aa966b3eb94192 (diff) |
better use fabs() than abs() when dealing with floats...
svn path=/trunk/externals/iem/iemmatrix/; revision=3594
Diffstat (limited to 'src')
-rw-r--r-- | src/mtx_abs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mtx_abs.c b/src/mtx_abs.c index 81f0eb0..5480be9 100644 --- a/src/mtx_abs.c +++ b/src/mtx_abs.c @@ -32,8 +32,8 @@ static void mtx_abs_matrix(t_mtx_binmtx *x, t_symbol *s, int argc, t_atom *argv) m = x->m.atombuffer+2; while(n--){ - t_float f = (t_float)abs(atom_getfloat(argv++)); - SETFLOAT(m, f); + t_float f = atom_getfloat(argv++); + SETFLOAT(m, (t_float)fabs(f)); m++; } |