find-idents.c: fix typo

...which so far has caused any bugs!
This commit is contained in:
Johan Malm 2023-08-12 20:10:44 +01:00 committed by Consolatis
parent c4b9173afd
commit be1ef03412

View file

@ -274,7 +274,7 @@ get_special_token(struct token *token)
/* Compare with longest special tokens first */
int k;
for (k = strlen(buf); k > 0; k--) {
for (int j = 0; sizeof(specials) / sizeof(specials[0]); j++) {
for (size_t j = 0; j < sizeof(specials) / sizeof(specials[0]); j++) {
if (strlen(specials[j].combo) < k) {
break;
}