summaryrefslogtreecommitdiff
path: root/Python/Python-ast.c
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-03-28 20:17:51 +0000
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-03-28 20:17:51 +0000
commit8250c40471ad7f3793e02a217ebfa331f3487c26 (patch)
tree23f068e4d671618261addafc8781c73e684592b0 /Python/Python-ast.c
parentd6b88cd608287cb7dd13d1a1cbff11c7c0df872c (diff)
downloadcpython-8250c40471ad7f3793e02a217ebfa331f3487c26.tar.gz
Silence a compilation warning
Diffstat (limited to 'Python/Python-ast.c')
-rw-r--r--Python/Python-ast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/Python-ast.c b/Python/Python-ast.c
index cb7bd25410..085cf61d4f 100644
--- a/Python/Python-ast.c
+++ b/Python/Python-ast.c
@@ -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;