Commit 473445c9 authored by Amaury Forgeot d'Arc's avatar Amaury Forgeot d'Arc

Silence a compilation warning

parent a98be45f
...@@ -5948,7 +5948,7 @@ mod_ty PyAST_obj2mod(PyObject* ast, PyArena* arena) ...@@ -5948,7 +5948,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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment