Silence a compilation warning

This commit is contained in:
Amaury Forgeot d'Arc 2008-03-28 20:17:51 +00:00
parent a98be45f18
commit 473445c964
1 changed files with 1 additions and 1 deletions

View File

@ -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;