summaryrefslogtreecommitdiff
path: root/Cython/Utility/StringTools.c
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2018-03-31 12:25:54 +0200
committerStefan Behnel <stefan_ml@behnel.de>2018-03-31 12:25:54 +0200
commitb91c48cc20b0b9d3bc7ca53d9354eef07f770b20 (patch)
tree03dac7cdc790e2f64bb18b2ca2551206d947494b /Cython/Utility/StringTools.c
parentde618c0141ae818e7a4c35d46256d98e6b6dba53 (diff)
downloadcython-b91c48cc20b0b9d3bc7ca53d9354eef07f770b20.tar.gz
Fix C compiler warning about implicit conversion from signed to unsigned.
Closes #2193.
Diffstat (limited to 'Cython/Utility/StringTools.c')
-rw-r--r--Cython/Utility/StringTools.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Utility/StringTools.c b/Cython/Utility/StringTools.c
index 85b987a4e..3950e723f 100644
--- a/Cython/Utility/StringTools.c
+++ b/Cython/Utility/StringTools.c
@@ -838,7 +838,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((char *)result_udata + char_pos * result_ukind, udata, ulength * result_ukind);
+ memcpy((char *)result_udata + char_pos * result_ukind, udata, (size_t) (ulength * result_ukind));
} else {
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030300F0 || defined(_PyUnicode_FastCopyCharacters)
_PyUnicode_FastCopyCharacters(result_uval, char_pos, uval, 0, ulength);