summaryrefslogtreecommitdiffstats
path: root/Python/future.c
diff options
context:
space:
mode:
authorAnthony Baxter <anthonybaxter@gmail.com>2006-04-11 12:01:56 (GMT)
committerAnthony Baxter <anthonybaxter@gmail.com>2006-04-11 12:01:56 (GMT)
commit7b782b61c597a989a21a22c15ee95decf997429f (patch)
tree8a34ffd3e534d54448916a1fea9bfec7297a6996 /Python/future.c
parent9176fc1466c8a896ab57b054bd426e63770e2cfa (diff)
downloadcpython-7b782b61c597a989a21a22c15ee95decf997429f.zip
cpython-7b782b61c597a989a21a22c15ee95decf997429f.tar.gz
cpython-7b782b61c597a989a21a22c15ee95decf997429f.tar.bz2
more low-hanging fruit to make code compile under a C++ compiler. Not
entirely happy with the two new VISIT macros in compile.c, but I couldn't see a better approach.
Diffstat (limited to 'Python/future.c')
-rw-r--r--Python/future.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/future.c b/Python/future.c
index 04fec22..560077d 100644
--- a/Python/future.c
+++ b/Python/future.c
@@ -19,7 +19,7 @@ future_check_features(PyFutureFeatures *ff, stmt_ty s, const char *filename)
names = s->v.ImportFrom.names;
for (i = 0; i < asdl_seq_LEN(names); i++) {
- alias_ty name = asdl_seq_GET(names, i);
+ alias_ty name = (alias_ty)asdl_seq_GET(names, i);
const char *feature = PyString_AsString(name->name);
if (!feature)
return 0;
@@ -73,7 +73,7 @@ future_parse(PyFutureFeatures *ff, mod_ty mod, const char *filename)
for (i = 0; i < asdl_seq_LEN(mod->v.Module.body); i++) {
- stmt_ty s = asdl_seq_GET(mod->v.Module.body, i);
+ stmt_ty s = (stmt_ty)asdl_seq_GET(mod->v.Module.body, i);
if (done && s->lineno > prev_line)
return 1;