diff Python/Python-ast.c @ 76948:99ed87c8e24c

Document f4d7ad6c9d6e.
author Martin v. Löwis <martin@v.loewis.de>
date Tue, 15 May 2012 14:52:36 +0200
parents f4d7ad6c9d6e
children c18a1a82bb07
line wrap: on
line diff
--- a/Python/Python-ast.c	Tue May 15 14:45:03 2012 +0200
+++ b/Python/Python-ast.c	Tue May 15 14:52:36 2012 +0200
@@ -636,7 +636,7 @@
 
 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 @@
                         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++)