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 /Modules/cjkcodecs | |
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 'Modules/cjkcodecs')
-rw-r--r-- | Modules/cjkcodecs/multibytecodec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/cjkcodecs/multibytecodec.c b/Modules/cjkcodecs/multibytecodec.c index 9f9fbeb..319dc52 100644 --- a/Modules/cjkcodecs/multibytecodec.c +++ b/Modules/cjkcodecs/multibytecodec.c @@ -1246,7 +1246,7 @@ _multibytecodec_MultibyteIncrementalDecoder_setstate_impl(MultibyteIncrementalDe PyObject *buffer; PyLongObject *statelong; Py_ssize_t buffersize; - char *bufferstr; + const char *bufferstr; unsigned char statebytes[8]; if (!PyArg_ParseTuple(state, "SO!;setstate(): illegal state argument", |