Skip to content

bpo-38823: Fix compiler warning in _ctypes on Windows - #23258

Merged
vstinner merged 1 commit into
python:masterfrom
vstinner:fix_ctypes_win_warn
Nov 13, 2020
Merged

vstinner merged 1 commit into
python:masterfrom
vstinner:fix_ctypes_win_warn

Conversation

@vstinner

@vstinner vstinner commented Nov 13, 2020 •

Copy link
Copy Markdown
Member

Explicitly cast PyExc_Exception to PyTypeObject* to fix the warning:

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

https://bugs.python.org/issue38823

Explicitly cast PyExc_Exception to PyTypeObject* to fix the warning:

    modules\_ctypes\_ctypes.c(5748): warning C4133: '=':
    incompatible types - from 'PyObject *' to '_typeobject *'
@vstinner
vstinner merged commit 0cec97e into python:master Nov 13, 2020
@vstinner
vstinner deleted the fix_ctypes_win_warn branch November 13, 2020 13:44
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 *'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants