summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2008-03-30 20:29:36 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2008-03-30 20:29:36 (GMT)
commit617fa91d89b53a15a9ebea9359245a7d9ba97027 (patch)
tree3e86229dda744eee2dc24d8bf5a814c17e145d01 /Parser
parent633291014fa632df8245991a171887ac251459d9 (diff)
downloadcpython-617fa91d89b53a15a9ebea9359245a7d9ba97027.zip
cpython-617fa91d89b53a15a9ebea9359245a7d9ba97027.tar.gz
cpython-617fa91d89b53a15a9ebea9359245a7d9ba97027.tar.bz2
Merged revisions 62013-62014 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ 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. ........
Diffstat (limited to 'Parser')
-rwxr-xr-xParser/asdl_c.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py
index 496ad01..94e04b1 100755
--- a/Parser/asdl_c.py
+++ b/Parser/asdl_c.py
@@ -938,7 +938,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;