Mercurial > hg > vampy
diff PyExtensionManager.cpp @ 66:5664fe298af2
Update to Python 2.7 and clean up the build (avoid using deprecated NumPy API, fix compiler warnings)
author | Chris Cannam |
---|---|
date | Mon, 17 Nov 2014 09:37:59 +0000 |
parents | 27bab3a16c9a |
children | 146d14ab15e7 |
line wrap: on
line diff
--- a/PyExtensionManager.cpp Wed Aug 06 16:02:25 2014 +0100 +++ b/PyExtensionManager.cpp Mon Nov 17 09:37:59 2014 +0000 @@ -22,7 +22,7 @@ using std::find; //static -char* PyExtensionManager::m_exposedNames[] = { +const char* PyExtensionManager::m_exposedNames[] = { "ParameterDescriptor", "OutputDescriptor", "ParameterList", @@ -152,7 +152,7 @@ int i = 0; while (PyExtensionManager::m_exposedNames[i]) { - char* name = PyExtensionManager::m_exposedNames[i]; + const char* name = PyExtensionManager::m_exposedNames[i]; i++; PyObject *key = PyString_FromString(name); if (!key) break;