diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2020-04-12 14:58:27 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-12 14:58:27 +0300 |
commit | 8f87eefe7f0576c05c488874eb9601a7a87c7312 (patch) | |
tree | 10ea36d1f702ae9e8bc34bcc88588868706948f6 /Modules/_io/bytesio.c | |
parent | 3e0dd3730b5eff7e9ae6fb921aa77cd26efc9e3a (diff) | |
download | cpython-git-8f87eefe7f0576c05c488874eb9601a7a87c7312.tar.gz |
bpo-39943: Add the const qualifier to pointers on non-mutable PyBytes data. (GH-19472)
Diffstat (limited to 'Modules/_io/bytesio.c')
-rw-r--r-- | Modules/_io/bytesio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_io/bytesio.c b/Modules/_io/bytesio.c index b5d308a8bc..f4261b3713 100644 --- a/Modules/_io/bytesio.c +++ b/Modules/_io/bytesio.c @@ -393,7 +393,7 @@ _io_BytesIO_tell_impl(bytesio *self) static PyObject * read_bytes(bytesio *self, Py_ssize_t size) { - char *output; + const char *output; assert(self->buf != NULL); assert(size <= self->string_size); @@ -502,7 +502,7 @@ _io_BytesIO_readlines_impl(bytesio *self, PyObject *arg) { Py_ssize_t maxsize, size, n; PyObject *result, *line; - char *output; + const char *output; CHECK_CLOSED(self); |