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
commit41829e82c1826dd71b64f8334959bcf7731f66fc (patch)
tree044814c17c3dfa573f4fba996cd1f6a54c304457 /Python/Python-ast.c
parentcc10a37ef0e05906c0f1c93bea646f3521b84a76 (diff)
downloadcpython-git-41829e82c1826dd71b64f8334959bcf7731f66fc.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++)