Commit 0d27e211 authored by Robert Bradshaw's avatar Robert Bradshaw

Fix void* arithmetic for MSVC.

Thanks to Martin Bammer for pointing this out.
parent 0bc495af
...@@ -778,7 +778,7 @@ static PyObject* __Pyx_PyUnicode_Join(PyObject* value_tuple, Py_ssize_t value_co ...@@ -778,7 +778,7 @@ static PyObject* __Pyx_PyUnicode_Join(PyObject* value_tuple, Py_ssize_t value_co
ukind = __Pyx_PyUnicode_KIND(uval); ukind = __Pyx_PyUnicode_KIND(uval);
udata = __Pyx_PyUnicode_DATA(uval); udata = __Pyx_PyUnicode_DATA(uval);
if (!CYTHON_PEP393_ENABLED || ukind == result_ukind) { if (!CYTHON_PEP393_ENABLED || ukind == result_ukind) {
memcpy(result_udata + char_pos * result_ukind, udata, ulength * result_ukind); memcpy((char *)result_udata + char_pos * result_ukind, udata, ulength * result_ukind);
} else { } else {
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030300F0 #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030300F0
_PyUnicode_FastCopyCharacters(result_uval, char_pos, uval, 0, ulength); _PyUnicode_FastCopyCharacters(result_uval, char_pos, uval, 0, ulength);
......
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