From: Johan Malm Date: Sat, 12 Aug 2023 19:10:44 +0000 (+0100) Subject: find-idents.c: fix typo X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=be1ef0341231fda6182ce4cd9398f0145c995097;p=proto%2Flabwc.git find-idents.c: fix typo ...which so far has caused any bugs! --- diff --git a/scripts/helper/find-idents.c b/scripts/helper/find-idents.c index b581f2dd..32b8a3c9 100644 --- a/scripts/helper/find-idents.c +++ b/scripts/helper/find-idents.c @@ -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; }