commit | 238cedcd6339e747daa6e2a383678d893482ef6d | [log] [tgz] |
---|---|---|
author | Brett Cannon <bcannon@gmail.com> | Thu Apr 02 03:34:53 2009 +0000 |
committer | Brett Cannon <bcannon@gmail.com> | Thu Apr 02 03:34:53 2009 +0000 |
tree | b4cba8913e16ce8faff300cc797a5420aa2ee0f8 | |
parent | 345b2fe21e7c18a7fd5cac4685e3daaf463a6b38 [diff] |
Fix two issues introduced by issue #71031 by changing the signature of PyImport_AppendInittab() to take a const char *.
diff --git a/Python/import.c b/Python/import.c index b39cb18..5e42e5c 100644 --- a/Python/import.c +++ b/Python/import.c
@@ -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);