From 036a0020a90077abdd504141a9d54f755673d40a Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 24 Sep 2014 11:34:13 -0500 Subject: Properly re-export loaded module symbols as global This relates to Bug 1995 --- src/pythonize.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pythonize.h') 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(); -- cgit v1.2.1