aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrille Henry <nusmuk@users.sourceforge.net>2015-09-16 17:00:06 +0000
committerCyrille Henry <nusmuk@users.sourceforge.net>2015-09-16 17:00:06 +0000
commitd70bb3608c799abb4f2b17fdc9b619448b7bb923 (patch)
tree90731d2e0a46f2cdb84273702103fb10ef5bb4f6
parent85b2d2247f811c66cb4b2c4bd5f7f331ebdbe743 (diff)
minor correction
svn path=/trunk/externals/nusmuk/; revision=17567
-rw-r--r--nusmuk-utils/tab_max.c2
-rw-r--r--nusmuk-utils/tab_min.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/nusmuk-utils/tab_max.c b/nusmuk-utils/tab_max.c
index 27d2be1..f9474b6 100644
--- a/nusmuk-utils/tab_max.c
+++ b/nusmuk-utils/tab_max.c
@@ -42,7 +42,7 @@ void tab_max_compute(t_tab_max *x)
pd_error(x, "%s: no such array", x->x_arrayname_src1->s_name);
else if (!garray_getfloatwords(a_src1, &npoints_src1, &vec_src1))
pd_error(x, "%s: bad template for tab_max", x->x_arrayname_src1->s_name);
- if (!(a_src2 = (t_garray *)pd_findbyclass(x->x_arrayname_src2, garray_class)))
+ else if (!(a_src2 = (t_garray *)pd_findbyclass(x->x_arrayname_src2, garray_class)))
pd_error(x, "%s: no such array", x->x_arrayname_src2->s_name);
else if (!garray_getfloatwords(a_src2, &npoints_src2, &vec_src2))
pd_error(x, "%s: bad template for tab_max", x->x_arrayname_src2->s_name);
diff --git a/nusmuk-utils/tab_min.c b/nusmuk-utils/tab_min.c
index d86f913..ee8305f 100644
--- a/nusmuk-utils/tab_min.c
+++ b/nusmuk-utils/tab_min.c
@@ -42,7 +42,7 @@ void tab_min_compute(t_tab_min *x)
pd_error(x, "%s: no such array", x->x_arrayname_src1->s_name);
else if (!garray_getfloatwords(a_src1, &npoints_src1, &vec_src1))
pd_error(x, "%s: bad template for tab_min", x->x_arrayname_src1->s_name);
- if (!(a_src2 = (t_garray *)pd_findbyclass(x->x_arrayname_src2, garray_class)))
+ else if (!(a_src2 = (t_garray *)pd_findbyclass(x->x_arrayname_src2, garray_class)))
pd_error(x, "%s: no such array", x->x_arrayname_src2->s_name);
else if (!garray_getfloatwords(a_src2, &npoints_src2, &vec_src2))
pd_error(x, "%s: bad template for tab_min", x->x_arrayname_src2->s_name);