From 4d2adcca52ced412d4bdf131b872729c43520d58 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 17 Apr 2007 21:58:50 +0000 Subject: Make it compile with C89. --- Python/ast.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Python/ast.c b/Python/ast.c index 262ade3..1bd1430 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) { -- cgit v0.12