]> granicus.if.org Git - python/commitdiff
Fix compiler warning on HP-UX.
authorNeal Norwitz <nnorwitz@gmail.com>
Sat, 2 Nov 2002 20:43:25 +0000 (20:43 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sat, 2 Nov 2002 20:43:25 +0000 (20:43 +0000)
Cast param to isalnum() to int.

Parser/tokenizer.c

index 8490ae9428d036c14103cf034286e98a9c07f8d1..800a1666e7cf4729e10ccfe7510d0d0e2e242c52 100644 (file)
@@ -228,8 +228,8 @@ get_coding_spec(const char *s, int size)
                        } while (t[0] == '\x20' || t[0] == '\t');
 
                        begin = t;
-                       while (isalnum(t[0]) || t[0] == '-' || t[0] == '_' ||
-                              t[0] == '.')
+                       while (isalnum((int)t[0]) ||
+                              t[0] == '-' || t[0] == '_' || t[0] == '.')
                                t++;
 
                        if (begin < t) {