Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bb3649e

Browse files
committed
Make new gcc -Wall happy
1 parent 39b0f89 commit bb3649e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Parser/grammar.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ translabel(g, lb)
217217
}
218218

219219
if (lb->lb_type == STRING) {
220-
if (isalpha(lb->lb_str[1]) || lb->lb_str[1] == '_') {
220+
if (isalpha((int)(lb->lb_str[1])) || lb->lb_str[1] == '_') {
221221
char *p;
222222
if (Py_DebugFlag)
223223
printf("Label %s is a keyword\n", lb->lb_str);

Parser/pgen.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ newnfa(name)
112112
char *name;
113113
{
114114
nfa *nf;
115-
static type = NT_OFFSET; /* All types will be disjunct */
115+
static int type = NT_OFFSET; /* All types will be disjunct */
116116

117117
nf = PyMem_NEW(nfa, 1);
118118
if (nf == NULL)

0 commit comments

Comments
 (0)