From d02b9bd34b1fb60b365ce05665332776e02009db Mon Sep 17 00:00:00 2001 From: rdb Date: Thu, 9 Jul 2009 08:26:36 +0000 Subject: [PATCH] Fix compiler warning --- direct/src/plugin/p3dPythonRun.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direct/src/plugin/p3dPythonRun.cxx b/direct/src/plugin/p3dPythonRun.cxx index c6d65d5f15..d20da6e181 100755 --- a/direct/src/plugin/p3dPythonRun.cxx +++ b/direct/src/plugin/p3dPythonRun.cxx @@ -296,7 +296,7 @@ handle_pyobj_command(TiXmlElement *xcommand, bool needs_response, if (op != NULL) { if (strcmp(op, "get_panda_script_object") == 0) { // Get Panda's toplevel Python object. - PyObject *obj = PyObject_CallMethod(_runner, "getPandaScriptObject", (char *)""); + PyObject *obj = PyObject_CallMethod(_runner, (char*)"getPandaScriptObject", (char *)""); if (obj != NULL) { xresponse->LinkEndChild(pyobj_to_xml(obj)); Py_DECREF(obj);