]> git.mdlowis.com Git - proto/labwc.git/commitdiff
find-idents.c: fix typo
authorJohan Malm <jgm323@gmail.com>
Sat, 12 Aug 2023 19:10:44 +0000 (20:10 +0100)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Sat, 12 Aug 2023 19:31:46 +0000 (21:31 +0200)
...which so far has caused any bugs!

scripts/helper/find-idents.c

index b581f2dd4fa4899e35001b51a303151d6f00bae1..32b8a3c9a5c25c06b1ec97560b046e0fd661db3a 100644 (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;
                        }