Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 617fa91

Browse files
committed
Merged revisions 62013-62014 via svnmerge from
svn+ssh://[email protected]/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. ........
1 parent 6332910 commit 617fa91

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Parser/asdl_c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ class PartingShots(StaticVisitor):
938938
{
939939
mod_ty res;
940940
init_types();
941-
if (!PyObject_IsInstance(ast, mod_type)) {
941+
if (!PyObject_IsInstance(ast, (PyObject*)mod_type)) {
942942
PyErr_SetString(PyExc_TypeError, "expected either Module, Interactive "
943943
"or Expression node");
944944
return NULL;

Python/Python-ast.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6419,7 +6419,7 @@ mod_ty PyAST_obj2mod(PyObject* ast, PyArena* arena)
64196419
{
64206420
mod_ty res;
64216421
init_types();
6422-
if (!PyObject_IsInstance(ast, mod_type)) {
6422+
if (!PyObject_IsInstance(ast, (PyObject*)mod_type)) {
64236423
PyErr_SetString(PyExc_TypeError, "expected either Module, Interactive "
64246424
"or Expression node");
64256425
return NULL;

0 commit comments

Comments
 (0)