summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
Diffstat (limited to 'Python')
-rw-r--r--Python/import.c2
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);