mirror of https://github.com/python/cpython
Silence compiler warning at the source.
This commit is contained in:
parent
473445c964
commit
aa5fbdd71a
|
@ -958,7 +958,7 @@ mod_ty PyAST_obj2mod(PyObject* ast, PyArena* arena)
|
||||||
{
|
{
|
||||||
mod_ty res;
|
mod_ty res;
|
||||||
init_types();
|
init_types();
|
||||||
if (!PyObject_IsInstance(ast, mod_type)) {
|
if (!PyObject_IsInstance(ast, (PyObject*)mod_type)) {
|
||||||
PyErr_SetString(PyExc_TypeError, "expected either Module, Interactive "
|
PyErr_SetString(PyExc_TypeError, "expected either Module, Interactive "
|
||||||
"or Expression node");
|
"or Expression node");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue