mirror of
https://github.com/python/cpython
synced 2024-09-05 08:17:45 +00:00
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. ........
This commit is contained in:
parent
633291014f
commit
617fa91d89
|
@ -938,7 +938,7 @@ class PartingShots(StaticVisitor):
|
||||||
{
|
{
|
||||||
mod_ty res;
|
mod_ty res;
|
||||||
init_types();
|
init_types();
|
||||||
if (!PyObject_IsInstance(ast, mod_type)) {
|
if (!PyObject_IsInstance(ast, (PyObject*)mod_type)) {
|
||||||
PyErr_SetString(PyExc_TypeError, "expected either Module, Interactive "
|
PyErr_SetString(PyExc_TypeError, "expected either Module, Interactive "
|
||||||
"or Expression node");
|
"or Expression node");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
|
@ -6419,7 +6419,7 @@ mod_ty PyAST_obj2mod(PyObject* ast, PyArena* arena)
|
||||||
{
|
{
|
||||||
mod_ty res;
|
mod_ty res;
|
||||||
init_types();
|
init_types();
|
||||||
if (!PyObject_IsInstance(ast, mod_type)) {
|
if (!PyObject_IsInstance(ast, (PyObject*)mod_type)) {
|
||||||
PyErr_SetString(PyExc_TypeError, "expected either Module, Interactive "
|
PyErr_SetString(PyExc_TypeError, "expected either Module, Interactive "
|
||||||
"or Expression node");
|
"or Expression node");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in a new issue