summaryrefslogtreecommitdiffstats
path: root/src/pythonize.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pythonize.h')
-rw-r--r--src/pythonize.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pythonize.h b/src/pythonize.h
index 6db64d2..23114ef 100644
--- a/src/pythonize.h
+++ b/src/pythonize.h
@@ -49,7 +49,7 @@ public:
// returns an object from a loaded module
// you must decref the object returned when done with it (new reference returned)
- PyObject *getNewObjectRef (PyObject *module, char *object) { return PyObject_GetAttrString (module, object); }
+ PyObject *getNewObjectRef (PyObject *module, const char *object) { return PyObject_GetAttrString (module, object); }
int getPythonInit () { return pythonInit; }
@@ -84,7 +84,7 @@ extern "C" {
// returns an object from a loaded module
// you must decref the object returned when done with it (new reference returned)
- PyObject *getNewObjectRef (PyObject *module, char *object);
+ PyObject *getNewObjectRef (PyObject *module, const char *object);
bool getPythonInit();