File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ What's New in Python 3.3.5 release candidate 1?
10
10
Core and Builtins
11
11
-----------------
12
12
13
+ - Issue #20588: Make Python-ast.c C89 compliant.
14
+
13
15
- Issue #20437: Fixed 21 potential bugs when deleting objects references.
14
16
15
17
- Issue #20538: UTF-7 incremental decoder produced inconsistant string when
Original file line number Diff line number Diff line change @@ -1150,10 +1150,14 @@ class PartingShots(StaticVisitor):
1150
1150
mod_ty PyAST_obj2mod(PyObject* ast, PyArena* arena, int mode)
1151
1151
{
1152
1152
mod_ty res;
1153
- PyObject *req_type[] = {(PyObject*)Module_type, (PyObject*)Expression_type,
1154
- (PyObject*)Interactive_type};
1153
+ PyObject *req_type[3];
1155
1154
char *req_name[] = {"Module", "Expression", "Interactive"};
1156
1155
int isinstance;
1156
+
1157
+ req_type[0] = (PyObject*)Module_type;
1158
+ req_type[1] = (PyObject*)Expression_type;
1159
+ req_type[2] = (PyObject*)Interactive_type;
1160
+
1157
1161
assert(0 <= mode && mode <= 2);
1158
1162
1159
1163
init_types();
Original file line number Diff line number Diff line change @@ -6957,10 +6957,14 @@ PyObject* PyAST_mod2obj(mod_ty t)
6957
6957
mod_ty PyAST_obj2mod (PyObject * ast , PyArena * arena , int mode )
6958
6958
{
6959
6959
mod_ty res ;
6960
- PyObject * req_type [] = {(PyObject * )Module_type , (PyObject * )Expression_type ,
6961
- (PyObject * )Interactive_type };
6960
+ PyObject * req_type [3 ];
6962
6961
char * req_name [] = {"Module" , "Expression" , "Interactive" };
6963
6962
int isinstance ;
6963
+
6964
+ req_type [0 ] = (PyObject * )Module_type ;
6965
+ req_type [1 ] = (PyObject * )Expression_type ;
6966
+ req_type [2 ] = (PyObject * )Interactive_type ;
6967
+
6964
6968
assert (0 <= mode && mode <= 2 );
6965
6969
6966
6970
init_types ();
You can’t perform that action at this time.
0 commit comments