# HG changeset patch # User Chris Cannam # Date 1400064018 -3600 # Node ID e034798ab1107c26bdc6164a039564e6f2f7ffe6 # Parent 1ffa08f9df266f87a5cdafdd158df7a33214b800 Slightly neaten diff -r 1ffa08f9df26 -r e034798ab110 cpp-qm-dsp/CQKernel.cpp --- a/cpp-qm-dsp/CQKernel.cpp Wed May 14 11:23:02 2014 +0100 +++ b/cpp-qm-dsp/CQKernel.cpp Wed May 14 11:40:18 2014 +0100 @@ -285,7 +285,8 @@ vector rv(nrows, C()); for (int i = 0; i < nrows; ++i) { - for (int j = 0; j < (int)m_kernel.data[i].size(); ++j) { + int len = m_kernel.data[i].size(); + for (int j = 0; j < len; ++j) { rv[i] += cv[j + m_kernel.origin[i]] * m_kernel.data[i][j]; } }