Skip to content

Commit

Permalink
Fix void* arithmetic for MSVC.
Browse files Browse the repository at this point in the history
Thanks to Martin Bammer for pointing this out.
  • Loading branch information
robertwb committed Oct 12, 2016
1 parent 0bc495a commit 0d27e21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cython/Utility/StringTools.c
Expand Up @@ -778,7 +778,7 @@ static PyObject* __Pyx_PyUnicode_Join(PyObject* value_tuple, Py_ssize_t value_co
ukind = __Pyx_PyUnicode_KIND(uval);
udata = __Pyx_PyUnicode_DATA(uval);
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 {
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030300F0
_PyUnicode_FastCopyCharacters(result_uval, char_pos, uval, 0, ulength);
Expand Down

0 comments on commit 0d27e21

Please sign in to comment.