瀏覽代碼

silly python headers

David Rose 16 年之前
父節點
當前提交
6794656499
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      direct/src/plugin/p3dPythonRun.cxx

+ 1 - 1
direct/src/plugin/p3dPythonRun.cxx

@@ -1294,7 +1294,7 @@ xml_to_pyobj(TiXmlElement *xvalue) {
         if (key != NULL) {
           PyObject *item = xml_to_pyobj(xitem);
           if (item != NULL) {
-            PyObject_SetAttrString(obj, key, item);
+            PyObject_SetAttrString(obj, (char *)key, item);
             Py_DECREF(item);
           }
         }