bpo-38823: Fix compiler warning in _ctypes on Windows by vstinner · Pull Request #23258 · python/cpython

@vstinner

Explicitly cast PyExc_Exception to PyTypeObject* to fix the warning:

    modules\_ctypes\_ctypes.c(5748): warning C4133: '=':
    incompatible types - from 'PyObject *' to '_typeobject *'

adorilson pushed a commit to adorilson/cpython that referenced this pull request

Mar 13, 2021
Explicitly cast PyExc_Exception to PyTypeObject* to fix the warning:

    modules\_ctypes\_ctypes.c(5748): warning C4133: '=':
    incompatible types - from 'PyObject *' to '_typeobject *'