summaryrefslogtreecommitdiffstats
path: root/Parser/asdl_c.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-03-28 20:22:56 (GMT)
committerGeorg Brandl <georg@python.org>2008-03-28 20:22:56 (GMT)
commitaa5fbdd71a6dff5685b7b3b93a8162fcd83e8804 (patch)
tree6b7c8791f00269cc9f73123aba6d701d1ebe4964 /Parser/asdl_c.py
parent473445c964210f825be776a609d8dcfeac3b0a4f (diff)
downloadcpython-aa5fbdd71a6dff5685b7b3b93a8162fcd83e8804.zip
cpython-aa5fbdd71a6dff5685b7b3b93a8162fcd83e8804.tar.gz
cpython-aa5fbdd71a6dff5685b7b3b93a8162fcd83e8804.tar.bz2
Silence compiler warning at the source.
Diffstat (limited to 'Parser/asdl_c.py')
-rwxr-xr-xParser/asdl_c.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py
index 4b6b7cf..fa43078 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;