Const fix (needed for older Python versions)

This commit is contained in:
Gustavo J. A. M. Carneiro
2008-11-28 15:12:05 +00:00
parent 192ae37d11
commit 47980e80e6

View File

@@ -235,7 +235,7 @@ public:
}
bool Parse (std::string value) {
PyObject *pyvalue = PyString_FromStringAndSize (value.data(), value.size());
PyObject_SetAttrString (m_namespace, m_variable.c_str(), pyvalue);
PyObject_SetAttrString (m_namespace, (char *) m_variable.c_str(), pyvalue);
if (PyErr_Occurred()) {
PyErr_Print();
return false;