소스 검색

win32 compilation issue

David Rose 16 년 전
부모
커밋
c22bd94db2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      panda/src/putil/typedWritable.cxx

+ 1 - 1
panda/src/putil/typedWritable.cxx

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