From c22bd94db2b000ca81635a1dcf84dbd5a930d1e8 Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 10 Dec 2009 01:14:53 +0000 Subject: [PATCH] win32 compilation issue --- panda/src/putil/typedWritable.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/putil/typedWritable.cxx b/panda/src/putil/typedWritable.cxx index 034917b3ba..9d58baca11 100644 --- a/panda/src/putil/typedWritable.cxx +++ b/panda/src/putil/typedWritable.cxx @@ -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;