diff options
author | Guido van Rossum <guido@python.org> | 2007-04-17 21:58:50 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-04-17 21:58:50 +0000 |
commit | 62d08f86da83d841e70f2181a4427df26000a322 (patch) | |
tree | d9e86eca8fc6a7e102c701b331155ae9fe6fcabf /Python | |
parent | 091b81838ce74a36c0772fa2486a74fd50741a2c (diff) | |
download | cpython-62d08f86da83d841e70f2181a4427df26000a322.tar.gz |
Make it compile with C89.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ast.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/ast.c b/Python/ast.c index 262ade3127..1bd1430fdf 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -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) { |