diff Python/Python-ast.c @ 46168:1b5b6abb1f2e legacy-trunk

Silence a compilation warning
author Amaury Forgeot d'Arc <amauryfa@gmail.com>
date Fri, 28 Mar 2008 20:17:51 +0000
parents ca38f7a4b4c9
children b0bf06d49647
line wrap: on
line diff
--- a/Python/Python-ast.c	Fri Mar 28 20:11:49 2008 +0000
+++ b/Python/Python-ast.c	Fri Mar 28 20:17:51 2008 +0000
@@ -5948,7 +5948,7 @@
 {
     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;