]> granicus.if.org Git - sudo/commitdiff
Quiet compiler sign compare warning.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 16 Dec 2014 17:46:25 +0000 (10:46 -0700)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 16 Dec 2014 17:46:25 +0000 (10:46 -0700)
lib/util/glob.c

index c218a4a71495f67a57c3b7b5016a78b44cbbf9dd..52ff286c1e04a1b4948ce6a75210cc215010afe5 100644 (file)
@@ -785,7 +785,7 @@ match(Char *name, Char *pat, Char *patend)
                                ++pat;
                        while (((c = *pat++) & M_MASK) != M_END) {
                                if ((c & M_MASK) == M_CLASS) {
-                                       int idx = *pat & M_MASK;
+                                       Char idx = *pat & M_MASK;
                                        if (idx < NCCLASSES &&
                                            cclasses[idx].isctype(k))
                                                ok = 1;