From 4b5b54572476cbf6a363f21468fc4b30ce1c5c9f Mon Sep 17 00:00:00 2001 From: Franz Zotter Date: Wed, 8 Jan 2014 16:26:26 +0000 Subject: corrected case in which result of [mtx_min2] and [mtx_max2] was sum instead of minimum/maximum. svn path=/trunk/externals/iem/iemmatrix/; revision=17237 --- src/mtx_max2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mtx_max2.c') diff --git a/src/mtx_max2.c b/src/mtx_max2.c index 27da1f3..a1c7606 100644 --- a/src/mtx_max2.c +++ b/src/mtx_max2.c @@ -109,7 +109,7 @@ static void mtx_max2_float(t_mtx_binmtx *x, t_float f) n=row2*col2; while(n--){ - SETFLOAT(ap, f+atom_getfloat(ap2++)); + SETFLOAT(ap, (f>atom_getfloat(ap2))?f:atom_getfloat(ap2)); ap++; } -- cgit v1.2.1