diff --git a/src/wrapper.cpp b/src/wrapper.cpp index eac7d972..f8feaef9 100755 --- a/src/wrapper.cpp +++ b/src/wrapper.cpp @@ -29,7 +29,8 @@ namespace detail && class_object->tp_dict != 0 ) { - borrowed_f = ::PyDict_GetItemString(class_object->tp_dict, name); + borrowed_f = ::PyDict_GetItemString( + class_object->tp_dict, const_cast(name)); }