summaryrefslogtreecommitdiffstats
path: root/Python/asdl.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2012-05-15 12:45:03 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2012-05-15 12:45:03 (GMT)
commitcc10a37ef0e05906c0f1c93bea646f3521b84a76 (patch)
tree1fc5f7b5853db5490f382ff90c6469b02d537a66 /Python/asdl.c
parent33cac8578bede2e9d6688ff46e849df7c2897a26 (diff)
downloadcpython-cc10a37ef0e05906c0f1c93bea646f3521b84a76.zip
cpython-cc10a37ef0e05906c0f1c93bea646f3521b84a76.tar.gz
cpython-cc10a37ef0e05906c0f1c93bea646f3521b84a76.tar.bz2
Widen ASDL sequences to Py_ssize_t lengths to better match PEP 353.
Diffstat (limited to 'Python/asdl.c')
-rw-r--r--Python/asdl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/asdl.c b/Python/asdl.c
index c30d7d20..e7e3280 100644
--- a/Python/asdl.c
+++ b/Python/asdl.c
@@ -2,7 +2,7 @@
#include "asdl.h"
asdl_seq *
-asdl_seq_new(int size, PyArena *arena)
+asdl_seq_new(Py_ssize_t size, PyArena *arena)
{
asdl_seq *seq = NULL;
size_t n = (size ? (sizeof(void *) * (size - 1)) : 0);
@@ -33,7 +33,7 @@ asdl_seq_new(int size, PyArena *arena)
}
asdl_int_seq *
-asdl_int_seq_new(int size, PyArena *arena)
+asdl_int_seq_new(Py_ssize_t size, PyArena *arena)
{
asdl_int_seq *seq = NULL;
size_t n = (size ? (sizeof(void *) * (size - 1)) : 0);