vt: use signed integers to correctly detect when we're done

This commit is contained in:
Daniel Eklöf 2020-05-02 20:01:43 +02:00
parent 39024681ec
commit b10436e49b
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

4
vt.c
View file

@ -536,8 +536,8 @@ precompose(wchar_t base, wchar_t comb)
const uint64_t match = (uint64_t)base << 32 | comb;
size_t start = 0;
size_t end = ALEN(precompose_table) - 1;
ssize_t start = 0;
ssize_t end = ALEN(precompose_table) - 1;
while (start <= end) {
size_t middle = (start + end) / 2;