Silence compiler warning at the source.

This commit is contained in:
Georg Brandl 2008-03-28 20:22:56 +00:00
parent 473445c964
commit aa5fbdd71a
1 changed files with 1 additions and 1 deletions

View File

@ -958,7 +958,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;