summaryrefslogtreecommitdiff
path: root/Python/Python-ast.c
diff options
context:
space:
mode:
authorMartin v. L?wis <martin@v.loewis.de>2012-05-15 14:52:36 +0200
committerMartin v. L?wis <martin@v.loewis.de>2012-05-15 14:52:36 +0200
commitfc75063925b1cf344e214177a3ddfd7ac3d961ca (patch)
treec877fb29880f8a0f19f6879bee651758b97b115b /Python/Python-ast.c
parent6c56fb87a67308d5d9530ae892d8d5f230549c64 (diff)
downloadcpython-fc75063925b1cf344e214177a3ddfd7ac3d961ca.tar.gz
Document f4d7ad6c9d6e.
Diffstat (limited to 'Python/Python-ast.c')
-rw-r--r--Python/Python-ast.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/Python-ast.c b/Python/Python-ast.c
index 4ca269f9f5..d9e13e28b0 100644
--- a/Python/Python-ast.c
+++ b/Python/Python-ast.c
@@ -636,7 +636,7 @@ static int add_attributes(PyTypeObject* type, char**attrs, int num_fields)
static PyObject* ast2obj_list(asdl_seq *seq, PyObject* (*func)(void*))
{
- Py_ssize_t i, n = asdl_seq_LEN(seq);
+ int i, n = asdl_seq_LEN(seq);
PyObject *result = PyList_New(n);
PyObject *value;
if (!result)
@@ -2857,7 +2857,7 @@ ast2obj_expr(void* _o)
goto failed;
Py_DECREF(value);
{
- Py_ssize_t i, n = asdl_seq_LEN(o->v.Compare.ops);
+ int i, n = asdl_seq_LEN(o->v.Compare.ops);
value = PyList_New(n);
if (!value) goto failed;
for(i = 0; i < n; i++)