diff Python/import.c @ 52720:fd5ee3d0f552 legacy-trunk

Fix two issues introduced by issue #71031 by changing the signature of PyImport_AppendInittab() to take a const char *.
author Brett Cannon <bcannon@gmail.com>
date Thu, 02 Apr 2009 03:34:53 +0000
parents 1ef3da6c434c
children 145376df3ad7
line wrap: on
line diff
--- a/Python/import.c	Thu Apr 02 03:20:38 2009 +0000
+++ b/Python/import.c	Thu Apr 02 03:34:53 2009 +0000
@@ -3382,7 +3382,7 @@
 
 	memset(newtab, '\0', sizeof newtab);
 
-	newtab[0].name = name;
+	newtab[0].name = (char *)name;
 	newtab[0].initfunc = initfunc;
 
 	return PyImport_ExtendInittab(newtab);