diff options
author | Robin Gareus <robin@gareus.org> | 2016-02-11 23:12:20 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-02-11 23:12:20 +0100 |
commit | 4fd47182f2bf2e1a88b5f2f1c880e592addb1bc9 (patch) | |
tree | 8875a8275f5fe525517f284c82973e3a85baa8c7 /libs/ardour/mtdm.cc | |
parent | 9766f88ee5e0aa1ec4e34688ec27d39256883ab4 (diff) |
Help clang static analyzer.
Diffstat (limited to 'libs/ardour/mtdm.cc')
-rw-r--r-- | libs/ardour/mtdm.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/mtdm.cc b/libs/ardour/mtdm.cc index 46cf90898a..f959d30539 100644 --- a/libs/ardour/mtdm.cc +++ b/libs/ardour/mtdm.cc @@ -17,6 +17,7 @@ */ #include <math.h> +#include <assert.h> #include "ardour/mtdm.h" @@ -58,6 +59,7 @@ int MTDM::process (size_t len, float *ip, float *op) float vip, vop, a, c, s; Freq *F; float peak = 0; + assert (len > 0); while (len--) { |