mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-01 07:15:32 -04:00
vt: use signed integers to correctly detect when we're done
This commit is contained in:
parent
39024681ec
commit
b10436e49b
1 changed files with 2 additions and 2 deletions
4
vt.c
4
vt.c
|
|
@ -536,8 +536,8 @@ precompose(wchar_t base, wchar_t comb)
|
||||||
|
|
||||||
const uint64_t match = (uint64_t)base << 32 | comb;
|
const uint64_t match = (uint64_t)base << 32 | comb;
|
||||||
|
|
||||||
size_t start = 0;
|
ssize_t start = 0;
|
||||||
size_t end = ALEN(precompose_table) - 1;
|
ssize_t end = ALEN(precompose_table) - 1;
|
||||||
|
|
||||||
while (start <= end) {
|
while (start <= end) {
|
||||||
size_t middle = (start + end) / 2;
|
size_t middle = (start + end) / 2;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue