From: Guido van Rossum Date: Fri, 10 Apr 1998 22:09:39 +0000 (+0000) Subject: Make new gcc -Wall happy X-Git-Tag: v1.5.1~74 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bb3649e2ba386adc16fadc2e0d1f2606c047e6aa;p=python Make new gcc -Wall happy --- diff --git a/Parser/grammar.c b/Parser/grammar.c index 07e3f623bf..51423d408d 100644 --- a/Parser/grammar.c +++ b/Parser/grammar.c @@ -217,7 +217,7 @@ translabel(g, lb) } if (lb->lb_type == STRING) { - if (isalpha(lb->lb_str[1]) || lb->lb_str[1] == '_') { + if (isalpha((int)(lb->lb_str[1])) || lb->lb_str[1] == '_') { char *p; if (Py_DebugFlag) printf("Label %s is a keyword\n", lb->lb_str); diff --git a/Parser/pgen.c b/Parser/pgen.c index 4b2acb87f5..f2adae919c 100644 --- a/Parser/pgen.c +++ b/Parser/pgen.c @@ -112,7 +112,7 @@ newnfa(name) char *name; { nfa *nf; - static type = NT_OFFSET; /* All types will be disjunct */ + static int type = NT_OFFSET; /* All types will be disjunct */ nf = PyMem_NEW(nfa, 1); if (nf == NULL)