aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);