Mercurial > cpython-lru_cache-weakref
diff Python/ast.c @ 41482:a5e410639e24
Make it compile with C89.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 17 Apr 2007 21:58:50 +0000 |
| parents | 060c79f6d919 |
| children | 26df566f80f0 |
line wrap: on
line diff
--- a/Python/ast.c Tue Apr 17 21:49:04 2007 +0000 +++ b/Python/ast.c Tue Apr 17 21:58:50 2007 +0000 @@ -1325,8 +1325,9 @@ 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) {
