[Python-checkins] r62014 - python/trunk/Parser/asdl_c.py
georg.brandl
python-checkins at python.org
Fri Mar 28 21:22:56 CET 2008
Author: georg.brandl
Date: Fri Mar 28 21:22:56 2008
New Revision: 62014
Modified:
python/trunk/Parser/asdl_c.py
Log:
Silence compiler warning at the source.
Modified: python/trunk/Parser/asdl_c.py
==============================================================================
--- python/trunk/Parser/asdl_c.py (original)
+++ python/trunk/Parser/asdl_c.py Fri Mar 28 21:22:56 2008
@@ -958,7 +958,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;
More information about the Python-checkins
mailing list