aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine/Problem.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-01-12 05:51:44 +0000
committerDavid Robillard <d@drobilla.net>2013-01-12 05:51:44 +0000
commit6d3f652624c18d960dbe34d65e333186b2dfd90a (patch)
treedd1fdbb3d29210773a35a64e49f8981a2898dffe /src/engine/Problem.cpp
parent3608cf1123c28e960892da7b38b4249efdd5e4aa (diff)
downloadmachina-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.cpp2
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++;