diff options
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-03-28 20:17:51 (GMT) |
---|---|---|
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-03-28 20:17:51 (GMT) |
commit | 473445c964210f825be776a609d8dcfeac3b0a4f (patch) | |
tree | 014fce85734973f96f1ab71ae580984fff8eed9f /Python/Python-ast.c | |
parent | a98be45f18156e33a1a6bad0480a8d2dbb857798 (diff) | |
download | cpython-473445c964210f825be776a609d8dcfeac3b0a4f.zip cpython-473445c964210f825be776a609d8dcfeac3b0a4f.tar.gz cpython-473445c964210f825be776a609d8dcfeac3b0a4f.tar.bz2 |
Silence a compilation warning
Diffstat (limited to 'Python/Python-ast.c')
-rw-r--r-- | Python/Python-ast.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/Python-ast.c b/Python/Python-ast.c index cb7bd25..085cf61 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; |