win32 compilation issue

This commit is contained in:
David Rose 2009-12-10 01:14:53 +00:00
parent 816ddc0387
commit c22bd94db2
1 changed files with 1 additions and 1 deletions

View File

@ -354,7 +354,7 @@ find_global_decode(PyObject *this_class, const char *func_name) {
// borrowed reference
PyObject *module = PyDict_GetItem(sys_modules, module_name);
if (module != NULL){
PyObject *func = PyObject_GetAttrString(module, func_name);
PyObject *func = PyObject_GetAttrString(module, (char *)func_name);
if (func != NULL) {
Py_DECREF(module_name);
return func;