bpo-45582: Fix signature of _Py_Get_Getpath_CodeObject (GH-29921)

This commit is contained in:
Christian Heimes 2021-12-05 19:41:46 +02:00 committed by GitHub
parent 605f4bf783
commit 628abe4463
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -783,7 +783,7 @@ library_to_dict(PyObject *dict, const char *key)
PyObject *
_Py_Get_Getpath_CodeObject()
_Py_Get_Getpath_CodeObject(void)
{
return PyMarshal_ReadObjectFromString(
(const char*)_Py_M__getpath, sizeof(_Py_M__getpath));