]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38823: Fix compiler warning in _ctypes on Windows (GH-23258)
authorVictor Stinner <vstinner@python.org>
Fri, 13 Nov 2020 13:44:11 +0000 (14:44 +0100)
committerGitHub <noreply@github.com>
Fri, 13 Nov 2020 13:44:11 +0000 (14:44 +0100)
commit0cec97eb6a3e31493c29ef9398fcf39a5ec445a6
tree45ee4ba5c3b59ae7fd2640039e3411b9e19d0400
parentfd009e606a48e803e7187983bf9a5682e938fddb
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 *'
Modules/_ctypes/_ctypes.c