Commit 15d5ca4f authored by Jan Möbius's avatar Jan Möbius

Try to fix size conversion on windows

parent af6b7528
...@@ -266,7 +266,7 @@ namespace pybind11 { namespace detail { ...@@ -266,7 +266,7 @@ namespace pybind11 { namespace detail {
if (!PyUnicode_Check(source)) if (!PyUnicode_Check(source))
return false; return false;
long int size; Py_ssize_t size;
char *ptr = PyUnicode_AsUTF8AndSize(source, &size); char *ptr = PyUnicode_AsUTF8AndSize(source, &size);
if (!ptr) { if (!ptr) {
......
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