Commit aa5fbdd7 authored by Georg Brandl's avatar Georg Brandl

Silence compiler warning at the source.

parent 473445c9
...@@ -958,7 +958,7 @@ mod_ty PyAST_obj2mod(PyObject* ast, PyArena* arena) ...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment