comparison Python/Python-ast.c @ 46168:1b5b6abb1f2e legacy-trunk

Silence a compilation warning
author Amaury Forgeot d'Arc <amauryfa@gmail.com>
date Fri, 28 Mar 2008 20:17:51 +0000
parents ca38f7a4b4c9
children b0bf06d49647
comparison
equal deleted inserted replaced
46167:654ad74ade13 46168:1b5b6abb1f2e
5946 5946
5947 mod_ty PyAST_obj2mod(PyObject* ast, PyArena* arena) 5947 mod_ty PyAST_obj2mod(PyObject* ast, PyArena* arena)
5948 { 5948 {
5949 mod_ty res; 5949 mod_ty res;
5950 init_types(); 5950 init_types();
5951 if (!PyObject_IsInstance(ast, mod_type)) { 5951 if (!PyObject_IsInstance(ast, (PyObject*)mod_type)) {
5952 PyErr_SetString(PyExc_TypeError, "expected either Module, Interactive " 5952 PyErr_SetString(PyExc_TypeError, "expected either Module, Interactive "
5953 "or Expression node"); 5953 "or Expression node");
5954 return NULL; 5954 return NULL;
5955 } 5955 }
5956 if (obj2ast_mod(ast, &res, arena) != 0) 5956 if (obj2ast_mod(ast, &res, arena) != 0)