summaryrefslogtreecommitdiff
path: root/Python/future.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2013-03-16 15:38:28 -0700
committerBenjamin Peterson <benjamin@python.org>2013-03-16 15:38:28 -0700
commitaa14dc3b4ee4e458602f2adff0003340d70ec11d (patch)
treef7a4a016a7808a5d2b947d64eaf8ce25b95710d0 /Python/future.c
parent2d6acd2ac2399ecc0f163c12c5695f434ba14955 (diff)
downloadcpython-git-aa14dc3b4ee4e458602f2adff0003340d70ec11d.tar.gz
C89 compliance
Diffstat (limited to 'Python/future.c')
-rw-r--r--Python/future.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/future.c b/Python/future.c
index 345efb2167..80978147f5 100644
--- a/Python/future.c
+++ b/Python/future.c
@@ -59,6 +59,7 @@ static int
future_parse(PyFutureFeatures *ff, mod_ty mod, const char *filename)
{
int i, done = 0, prev_line = 0;
+ stmt_ty first;
if (!(mod->kind == Module_kind || mod->kind == Interactive_kind))
return 1;
@@ -75,7 +76,7 @@ future_parse(PyFutureFeatures *ff, mod_ty mod, const char *filename)
*/
i = 0;
- stmt_ty first = (stmt_ty)asdl_seq_GET(mod->v.Module.body, i);
+ first = (stmt_ty)asdl_seq_GET(mod->v.Module.body, i);
if (first->kind == Expr_kind && first->v.Expr.value->kind == Str_kind)
i++;