diff options
-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; } |