Commit 4b85e23c authored by Jan Möbius's avatar Jan Möbius
Browse files

Fixed const non-const conversion

parent f593fd77
......@@ -267,7 +267,7 @@ namespace pybind11 { namespace detail {
return false;
Py_ssize_t size;
char *ptr = PyUnicode_AsUTF8AndSize(source, &size);
const char *ptr = PyUnicode_AsUTF8AndSize(source, &size);
if (!ptr) {
return NULL;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment