]> granicus.if.org Git - python/commitdiff
Silence a compilation warning
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>
Fri, 28 Mar 2008 20:17:51 +0000 (20:17 +0000)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>
Fri, 28 Mar 2008 20:17:51 +0000 (20:17 +0000)
Python/Python-ast.c

index cb7bd25410907a10bd12d97992ac0fd464911da0..085cf61d4ff75f1f07844f0e0f3d739e541fb0dc 100644 (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;