]> granicus.if.org Git - python/commitdiff
Silence compiler warning at the source.
authorGeorg Brandl <georg@python.org>
Fri, 28 Mar 2008 20:22:56 +0000 (20:22 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 28 Mar 2008 20:22:56 +0000 (20:22 +0000)
Parser/asdl_c.py

index 4b6b7cfbf346b4d4a1820a7f5d818cacf277cffb..fa4307822d807714e56aef36e91bfad082032155 100755 (executable)
@@ -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;