mirror of
https://github.com/python/cpython.git
synced 2025-09-05 00:11:10 +00:00
fixed compilation with an ordinary C89 compiler
This commit is contained in:
parent
0149e3a090
commit
93d69a7948
2 changed files with 3 additions and 4 deletions
|
@ -296,8 +296,7 @@ PyCodeObject *
|
|||
PyNode_Compile(struct _node *n, const char *filename)
|
||||
{
|
||||
PyCodeObject *co = NULL;
|
||||
PyArena *arena;
|
||||
arena = PyArena_New();
|
||||
PyArena *arena = PyArena_New();
|
||||
mod_ty mod = PyAST_FromNode(n, NULL, filename, arena);
|
||||
if (mod)
|
||||
co = PyAST_Compile(mod, filename, NULL, arena);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue