summaryrefslogtreecommitdiff
path: root/Python/Python-ast.c
diff options
context:
space:
mode:
authorGiampaolo Rodola' <g.rodola@gmail.com>2012-05-15 22:21:01 +0200
committerGiampaolo Rodola' <g.rodola@gmail.com>2012-05-15 22:21:01 +0200
commit12ea86adcea986c5572c597b72253d839f4d303a (patch)
treedb1cf22fe78ad8f96da1f2d47a1928854b3564dd /Python/Python-ast.c
parentb28df76ee2cdd0bb2a941bc179f347c26e4254f5 (diff)
parent9b704ec9e1049788157a7f042ef765a4bb058b68 (diff)
downloadcpython-git-12ea86adcea986c5572c597b72253d839f4d303a.tar.gz
merge heads
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 d9e13e28b0..4ca269f9f5 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*))
{
- int i, n = asdl_seq_LEN(seq);
+ Py_ssize_t 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);
{
- int i, n = asdl_seq_LEN(o->v.Compare.ops);
+ Py_ssize_t i, n = asdl_seq_LEN(o->v.Compare.ops);
value = PyList_New(n);
if (!value) goto failed;
for(i = 0; i < n; i++)