summaryrefslogtreecommitdiffstats
path: root/Python/asdl.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-04-13 13:08:58 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2006-04-13 13:08:58 (GMT)
commitf33dea29619d755db9608265a28fabea9690145a (patch)
treed954a12e36d3a47728cabc7abf63eafcaeee3a03 /Python/asdl.c
parent5d4cf5ecc113ad0aab5e52ae8cf1057b12e1a6d4 (diff)
downloadcpython-f33dea29619d755db9608265a28fabea9690145a.zip
cpython-f33dea29619d755db9608265a28fabea9690145a.tar.gz
cpython-f33dea29619d755db9608265a28fabea9690145a.tar.bz2
Fix type errors.
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 416b293..72329b9 100644
--- a/Python/asdl.c
+++ b/Python/asdl.c
@@ -21,11 +21,11 @@ asdl_seq_new(int size, PyArena *arena)
asdl_int_seq *
asdl_int_seq_new(int size, PyArena *arena)
{
- asdl_seq *seq = NULL;
+ asdl_int_seq *seq = NULL;
size_t n = sizeof(asdl_seq) +
(size ? (sizeof(int) * (size - 1)) : 0);
- seq = (asdl_seq *)PyArena_Malloc(arena, n);
+ seq = (asdl_int_seq *)PyArena_Malloc(arena, n);
if (!seq) {
PyErr_NoMemory();
return NULL;