mirror of
https://github.com/python/cpython.git
synced 2026-05-18 10:24:42 -04:00
Fix two issues introduced by issue #71031 by changing the signature of
PyImport_AppendInittab() to take a const char *.
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user