[Python-checkins] r45364 - python/trunk/Python/asdl.c

martin.v.loewis python-checkins at python.org
Thu Apr 13 15:08:58 CEST 2006


Author: martin.v.loewis
Date: Thu Apr 13 15:08:58 2006
New Revision: 45364

Modified:
   python/trunk/Python/asdl.c
Log:
Fix type errors.


Modified: python/trunk/Python/asdl.c
==============================================================================
--- python/trunk/Python/asdl.c	(original)
+++ python/trunk/Python/asdl.c	Thu Apr 13 15:08:58 2006
@@ -21,11 +21,11 @@
 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;


More information about the Python-checkins mailing list