Mercurial > cpython-lru_cache-weakref
diff Python/future.c @ 37606:f448d0075691 legacy-trunk
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.
| author | Anthony Baxter <anthonybaxter@gmail.com> |
|---|---|
| date | Tue, 11 Apr 2006 12:01:56 +0000 |
| parents | 286c81689826 |
| children | 75a7106662a3 |
line wrap: on
line diff
--- a/Python/future.c Tue Apr 11 11:12:43 2006 +0000 +++ b/Python/future.c Tue Apr 11 12:01:56 2006 +0000 @@ -19,7 +19,7 @@ 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 @@ 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;
