From 47980e80e6057d0f64d7010d938830ceaec7cbba Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Fri, 28 Nov 2008 15:12:05 +0000 Subject: [PATCH] Const fix (needed for older Python versions) --- bindings/python/ns3module_helpers.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/python/ns3module_helpers.cc b/bindings/python/ns3module_helpers.cc index b2a15ca49..fb0a6983f 100644 --- a/bindings/python/ns3module_helpers.cc +++ b/bindings/python/ns3module_helpers.cc @@ -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;