Const fix (needed for older Python versions)
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Fri, 28 Nov 2008 15:12:05 +0000
changeset 3952 503e8d54ee1d
parent 3951 561a37800333
child 3955 4ddcca845f07
Const fix (needed for older Python versions)
bindings/python/ns3module_helpers.cc
--- a/bindings/python/ns3module_helpers.cc	Fri Nov 28 14:45:48 2008 +0000
+++ b/bindings/python/ns3module_helpers.cc	Fri Nov 28 15:12:05 2008 +0000
@@ -235,7 +235,7 @@
     }
     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;