diff options
author | Brett Cannon <bcannon@gmail.com> | 2009-04-02 03:34:53 +0000 |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2009-04-02 03:34:53 +0000 |
commit | 238cedcd6339e747daa6e2a383678d893482ef6d (patch) | |
tree | b4cba8913e16ce8faff300cc797a5420aa2ee0f8 /Python/import.c | |
parent | 345b2fe21e7c18a7fd5cac4685e3daaf463a6b38 (diff) | |
download | cpython-git-238cedcd6339e747daa6e2a383678d893482ef6d.tar.gz |
Fix two issues introduced by issue #71031 by changing the signature of
PyImport_AppendInittab() to take a const char *.
Diffstat (limited to 'Python/import.c')
-rw-r--r-- | Python/import.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/import.c b/Python/import.c index b39cb18f23..5e42e5c9f3 100644 --- a/Python/import.c +++ b/Python/import.c @@ -3382,7 +3382,7 @@ PyImport_AppendInittab(const char *name, void (*initfunc)(void)) memset(newtab, '\0', sizeof newtab); - newtab[0].name = name; + newtab[0].name = (char *)name; newtab[0].initfunc = initfunc; return PyImport_ExtendInittab(newtab); |