mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
Silence a compilation warning
This commit is contained in:
parent
a98be45f18
commit
473445c964
1 changed files with 1 additions and 1 deletions
|
@ -5948,7 +5948,7 @@ mod_ty PyAST_obj2mod(PyObject* ast, PyArena* arena)
|
|||
{
|
||||
mod_ty res;
|
||||
init_types();
|
||||
if (!PyObject_IsInstance(ast, mod_type)) {
|
||||
if (!PyObject_IsInstance(ast, (PyObject*)mod_type)) {
|
||||
PyErr_SetString(PyExc_TypeError, "expected either Module, Interactive "
|
||||
"or Expression node");
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue