diff options
author | David Robillard <d@drobilla.net> | 2011-11-08 21:36:45 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-11-08 21:36:45 +0000 |
commit | f2a79fecab88df0b01f1d5ab3cac15de212e3a2f (patch) | |
tree | 660cf7c8842dbec916d5ca0dd42a2fe88284ae28 | |
parent | 772bdee6ee56a2655a96429aec87589371ea263b (diff) | |
download | jalv-f2a79fecab88df0b01f1d5ab3cac15de212e3a2f.tar.gz jalv-f2a79fecab88df0b01f1d5ab3cac15de212e3a2f.tar.bz2 jalv-f2a79fecab88df0b01f1d5ab3cac15de212e3a2f.zip |
Fix bug resulting in corrupt (unsorted) map.
git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@3607 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | src/symap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/symap.c b/src/symap.c index cbbb590..e82e414 100644 --- a/src/symap.c +++ b/src/symap.c @@ -118,11 +118,11 @@ symap_search(const Symap* map, const char* sym, bool* exact) } upper = i - 1; } else { - lower = i + 1; + lower = ++i; } } - assert(strcmp(map->symbols[map->index[i] - 1], sym) > 0); + assert(!*exact || strcmp(map->symbols[map->index[i] - 1], sym) > 0); return i; } |