aboutsummaryrefslogtreecommitdiff
path: root/nusmuk-utils/tab_derivate.c
diff options
context:
space:
mode:
authorCyrille Henry <nusmuk@users.sourceforge.net>2015-10-02 12:45:42 +0000
committerCyrille Henry <nusmuk@users.sourceforge.net>2015-10-02 12:45:42 +0000
commitb05a9c45123938fa76e448ae55f9007b319d7d9f (patch)
treedb96c6d2eae1e394dc678849763e6d48dad968ae /nusmuk-utils/tab_derivate.c
parent04d4f420be4be2480f86238cb5e5a61a04f63817 (diff)
protection to avoir division by zeroHEADsvn2git-head.1master
svn path=/trunk/externals/nusmuk/; revision=17570
Diffstat (limited to 'nusmuk-utils/tab_derivate.c')
-rw-r--r--nusmuk-utils/tab_derivate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nusmuk-utils/tab_derivate.c b/nusmuk-utils/tab_derivate.c
index f035b99..1aa0269 100644
--- a/nusmuk-utils/tab_derivate.c
+++ b/nusmuk-utils/tab_derivate.c
@@ -41,6 +41,8 @@ void tab_derivate_compute(t_tab_derivate *x, t_float nb) {
else
{
nb_derivate = MIN(npoints_src1, npoints_dst);
+ //nb_derivate = MAX(1, x->factor);
+
// post("nb_derivate = %d",nb_derivate);
if (nb > 0)