From: Georg Brandl Date: Fri, 28 Mar 2008 20:22:56 +0000 (+0000) Subject: Silence compiler warning at the source. X-Git-Tag: v2.6a2~50 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aa5fbdd71a6dff5685b7b3b93a8162fcd83e8804;p=thirdparty%2FPython%2Fcpython.git Silence compiler warning at the source. --- diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py index 4b6b7cfbf346..fa4307822d80 100755 --- a/Parser/asdl_c.py +++ b/Parser/asdl_c.py @@ -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;