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.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pythonize.cpp') diff --git a/src/pythonize.cpp b/src/pythonize.cpp index e83f965..d8fb038 100644 --- a/src/pythonize.cpp +++ b/src/pythonize.cpp @@ -202,7 +202,7 @@ PyObject *importModule (char *moduleName) // 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) { return _pythonize ? _pythonize->getNewObjectRef (module, object) : NULL; } -- cgit v1.2.3