From 6794656499c6bee4b8dc8f5cb63ce757acdbf816 Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 14 Jul 2009 21:01:19 +0000 Subject: [PATCH] silly python headers --- 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 c559f1f80f..c8a7df9766 100755 --- a/direct/src/plugin/p3dPythonRun.cxx +++ b/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); } }