mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
bpo-38823: Fix compiler warning in _ctypes on Windows (GH-23258)
Explicitly cast PyExc_Exception to PyTypeObject* to fix the warning: modules\_ctypes\_ctypes.c(5748): warning C4133: '=': incompatible types - from 'PyObject *' to '_typeobject *'
This commit is contained in:
parent
fd009e606a
commit
0cec97eb6a
1 changed files with 1 additions and 1 deletions
|
@ -5745,7 +5745,7 @@ _ctypes_add_types(PyObject *mod)
|
|||
TYPE_READY(&StructParam_Type);
|
||||
|
||||
#ifdef MS_WIN32
|
||||
TYPE_READY_BASE(&PyComError_Type, PyExc_Exception);
|
||||
TYPE_READY_BASE(&PyComError_Type, (PyTypeObject*)PyExc_Exception);
|
||||
#endif
|
||||
|
||||
#undef TYPE_READY
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue