diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2020-04-12 11:58:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-12 11:58:27 (GMT) |
commit | 8f87eefe7f0576c05c488874eb9601a7a87c7312 (patch) | |
tree | 10ea36d1f702ae9e8bc34bcc88588868706948f6 /Objects/stringlib | |
parent | 3e0dd3730b5eff7e9ae6fb921aa77cd26efc9e3a (diff) | |
download | cpython-8f87eefe7f0576c05c488874eb9601a7a87c7312.zip cpython-8f87eefe7f0576c05c488874eb9601a7a87c7312.tar.gz cpython-8f87eefe7f0576c05c488874eb9601a7a87c7312.tar.bz2 |
bpo-39943: Add the const qualifier to pointers on non-mutable PyBytes data. (GH-19472)
Diffstat (limited to 'Objects/stringlib')
-rw-r--r-- | Objects/stringlib/join.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/stringlib/join.h b/Objects/stringlib/join.h index 8ad598a..53bcbde 100644 --- a/Objects/stringlib/join.h +++ b/Objects/stringlib/join.h @@ -7,8 +7,8 @@ Py_LOCAL_INLINE(PyObject *) STRINGLIB(bytes_join)(PyObject *sep, PyObject *iterable) { - char *sepstr = STRINGLIB_STR(sep); - const Py_ssize_t seplen = STRINGLIB_LEN(sep); + const char *sepstr = STRINGLIB_STR(sep); + Py_ssize_t seplen = STRINGLIB_LEN(sep); PyObject *res = NULL; char *p; Py_ssize_t seqlen = 0; |