diff options
| author | Martin v. Löwis <martin@v.loewis.de> | 2006-04-13 12:29:43 +0000 |
|---|---|---|
| committer | Martin v. Löwis <martin@v.loewis.de> | 2006-04-13 12:29:43 +0000 |
| commit | 42e4f6127fc7d7e77123073dad9aa453ed7c158a (patch) | |
| tree | 76206c476e8cc0172ff0a98e61c897809d708314 /Python/Python-ast.c | |
| parent | 5701c9c16688bc5027b0507411ece5df0de8f80f (diff) | |
| download | cpython-42e4f6127fc7d7e77123073dad9aa453ed7c158a.tar.gz | |
Introduce asdl_int_seq, to hold cmpop_ty.
Diffstat (limited to 'Python/Python-ast.c')
| -rw-r--r-- | Python/Python-ast.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/Python-ast.c b/Python/Python-ast.c index af9deedc4f..7a0f52825c 100644 --- a/Python/Python-ast.c +++ b/Python/Python-ast.c @@ -1503,8 +1503,8 @@ Yield(expr_ty value, int lineno, int col_offset, PyArena *arena) } expr_ty -Compare(expr_ty left, asdl_seq * ops, asdl_seq * comparators, int lineno, int - col_offset, PyArena *arena) +Compare(expr_ty left, asdl_int_seq * ops, asdl_seq * comparators, int lineno, + int col_offset, PyArena *arena) { expr_ty p; if (!left) { @@ -2503,7 +2503,7 @@ ast2obj_expr(void* _o) value = PyList_New(n); if (!value) goto failed; for(i = 0; i < n; i++) - PyList_SET_ITEM(value, i, ast2obj_cmpop((cmpop_ty)(int)asdl_seq_GET(o->v.Compare.ops, i))); + PyList_SET_ITEM(value, i, ast2obj_cmpop((cmpop_ty)asdl_seq_GET(o->v.Compare.ops, i))); } if (!value) goto failed; if (PyObject_SetAttrString(result, "ops", value) == -1) |
