Skip to content

Commit 047896a

Browse files
author
Ralf W. Grosse-Kunstleve
committed
fix for char* -> const char* conversion (g++ diagnostic)
[SVN r24105]
1 parent fbe3a56 commit 047896a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/wrapper.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ namespace detail
2929
&& class_object->tp_dict != 0
3030
)
3131
{
32-
borrowed_f = ::PyDict_GetItemString(class_object->tp_dict, name);
32+
borrowed_f = ::PyDict_GetItemString(
33+
class_object->tp_dict, const_cast<char*>(name));
3334

3435

3536
}

0 commit comments

Comments
 (0)