diff options
author | David Robillard <d@drobilla.net> | 2013-01-12 05:51:44 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-01-12 05:51:44 +0000 |
commit | 6d3f652624c18d960dbe34d65e333186b2dfd90a (patch) | |
tree | dd1fdbb3d29210773a35a64e49f8981a2898dffe /src/engine/Problem.cpp | |
parent | 3608cf1123c28e960892da7b38b4249efdd5e4aa (diff) | |
download | machina-6d3f652624c18d960dbe34d65e333186b2dfd90a.tar.gz machina-6d3f652624c18d960dbe34d65e333186b2dfd90a.tar.bz2 machina-6d3f652624c18d960dbe34d65e333186b2dfd90a.zip |
Fix node times when importing MIDI.
git-svn-id: http://svn.drobilla.net/lad/trunk/machina@4934 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/Problem.cpp')
-rw-r--r-- | src/engine/Problem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/Problem.cpp b/src/engine/Problem.cpp index 5c5992d..2db4f45 100644 --- a/src/engine/Problem.cpp +++ b/src/engine/Problem.cpp @@ -357,7 +357,7 @@ Problem::distance(const std::vector<uint8_t>& source, // Enhanced Dynamic Programming ASM Algorithm" // (http://www.acm.org/~hlb/publications/asm/asm.html) - if (( i > 2) && ( j > 2) ) { + if (i > 2 && j > 2) { uint16_t trans = _matrix[i - 2][j - 2] + 1; if (source[i - 2] != t_j) { trans++; |