From 617fa91d89b53a15a9ebea9359245a7d9ba97027 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sun, 30 Mar 2008 20:29:36 +0000 Subject: [PATCH] Merged revisions 62013-62014 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ........ r62013 | amaury.forgeotdarc | 2008-03-28 21:17:51 +0100 (Fr, 28 Mär 2008) | 2 lines Silence a compilation warning ........ r62014 | georg.brandl | 2008-03-28 21:22:56 +0100 (Fr, 28 Mär 2008) | 2 lines Silence compiler warning at the source. ........ --- Parser/asdl_c.py | 2 +- Python/Python-ast.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py index 496ad01ebb0..94e04b1c021 100755 --- a/Parser/asdl_c.py +++ b/Parser/asdl_c.py @@ -938,7 +938,7 @@ class PartingShots(StaticVisitor): { 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; diff --git a/Python/Python-ast.c b/Python/Python-ast.c index e89c9d57e8c..464d28d34b1 100644 --- a/Python/Python-ast.c +++ b/Python/Python-ast.c @@ -6419,7 +6419,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;