diff options
author | Lisandro Dalcin <dalcinl@gmail.com> | 2022-06-21 15:04:54 +0300 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2022-06-21 14:06:47 +0200 |
commit | 9fb8fae9295a9fa689bfe54a00f1f39642822d7c (patch) | |
tree | 8be6b38e1f1a62191a03c8c67102e043116146b9 | |
parent | c416c7cb2159cc43f9461d96721aeaaa8f9f4714 (diff) | |
download | cython-9fb8fae9295a9fa689bfe54a00f1f39642822d7c.tar.gz |
Fix GCC -Wconversion warning in C utility code (GH-4854)
-rw-r--r-- | Cython/Utility/StringTools.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Utility/StringTools.c b/Cython/Utility/StringTools.c index 35241c64a..98b5e260e 100644 --- a/Cython/Utility/StringTools.c +++ b/Cython/Utility/StringTools.c @@ -953,7 +953,7 @@ static PyObject* __Pyx_PyUnicode_BuildFromAscii(Py_ssize_t ulength, char* chars, padding = PyUnicode_FromOrdinal(padding_char); if (likely(padding) && uoffset > prepend_sign + 1) { PyObject *tmp; - PyObject *repeat = PyInt_FromSize_t(uoffset - prepend_sign); + PyObject *repeat = PyInt_FromSsize_t(uoffset - prepend_sign); if (unlikely(!repeat)) goto done_or_error; tmp = PyNumber_Multiply(padding, repeat); Py_DECREF(repeat); |