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

Skip to content

Commit 4d2adcc

Browse files
committed
Make it compile with C89.
1 parent 2fa74bb commit 4d2adcc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Python/ast.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1325,8 +1325,9 @@ ast_for_atom(struct compiling *c, const node *n)
13251325
return Dict(NULL, NULL, LINENO(n), n->n_col_offset, c->c_arena);
13261326
} else if (NCH(ch) == 1 || TYPE(CHILD(ch, 1)) == COMMA) {
13271327
/* it's a simple set */
1328+
asdl_seq *elts;
13281329
size = (NCH(ch) + 1) / 2; /* +1 in case no trailing comma */
1329-
asdl_seq *elts = asdl_seq_new(size, c->c_arena);
1330+
elts = asdl_seq_new(size, c->c_arena);
13301331
if (!elts)
13311332
return NULL;
13321333
for (i = 0; i < NCH(ch); i += 2) {

0 commit comments

Comments
 (0)