Make it compile with C89.

This commit is contained in:
Guido van Rossum 2007-04-17 21:58:50 +00:00
parent 2fa74bbad5
commit 4d2adcca52
1 changed files with 2 additions and 1 deletions

View File

@ -1325,8 +1325,9 @@ ast_for_atom(struct compiling *c, const node *n)
return Dict(NULL, NULL, LINENO(n), n->n_col_offset, c->c_arena);
} else if (NCH(ch) == 1 || TYPE(CHILD(ch, 1)) == COMMA) {
/* it's a simple set */
asdl_seq *elts;
size = (NCH(ch) + 1) / 2; /* +1 in case no trailing comma */
asdl_seq *elts = asdl_seq_new(size, c->c_arena);
elts = asdl_seq_new(size, c->c_arena);
if (!elts)
return NULL;
for (i = 0; i < NCH(ch); i += 2) {