mirror of
https://abf.rosa.ru/djam/boost.git
synced 2025-04-16 03:04:16 +00:00
13 lines
583 B
Diff
13 lines
583 B
Diff
Index: boost1.62-1.62.0+dfsg/libs/python/src/converter/builtin_converters.cpp
|
|
===================================================================
|
|
--- boost1.62-1.62.0+dfsg.orig/libs/python/src/converter/builtin_converters.cpp
|
|
+++ boost1.62-1.62.0+dfsg/libs/python/src/converter/builtin_converters.cpp
|
|
@@ -48,7 +48,7 @@ namespace
|
|
#else
|
|
void* convert_to_cstring(PyObject* obj)
|
|
{
|
|
- return PyUnicode_Check(obj) ? _PyUnicode_AsString(obj) : 0;
|
|
+ return PyUnicode_Check(obj) ? const_cast<void*>(reinterpret_cast<const void*>(_PyUnicode_AsString(obj))) : 0;
|
|
}
|
|
#endif
|
|
|