소스 검색

Fix compiler warning

rdb 16 년 전
부모
커밋
d02b9bd34b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      direct/src/plugin/p3dPythonRun.cxx

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

@@ -296,7 +296,7 @@ handle_pyobj_command(TiXmlElement *xcommand, bool needs_response,
   if (op != NULL) {
   if (op != NULL) {
     if (strcmp(op, "get_panda_script_object") == 0) {
     if (strcmp(op, "get_panda_script_object") == 0) {
       // Get Panda's toplevel Python object.
       // Get Panda's toplevel Python object.
-      PyObject *obj = PyObject_CallMethod(_runner, "getPandaScriptObject", (char *)"");
+      PyObject *obj = PyObject_CallMethod(_runner, (char*)"getPandaScriptObject", (char *)"");
       if (obj != NULL) {
       if (obj != NULL) {
         xresponse->LinkEndChild(pyobj_to_xml(obj));
         xresponse->LinkEndChild(pyobj_to_xml(obj));
         Py_DECREF(obj);
         Py_DECREF(obj);