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/textio.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/textio.c')
-rw-r--r-- | Modules/_io/textio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_io/textio.c b/Modules/_io/textio.c index 12dba38d73..92d6faafa2 100644 --- a/Modules/_io/textio.c +++ b/Modules/_io/textio.c @@ -2640,7 +2640,7 @@ _io_TextIOWrapper_tell_impl(textio *self) Py_ssize_t chars_to_skip, chars_decoded; Py_ssize_t skip_bytes, skip_back; PyObject *saved_state = NULL; - char *input, *input_end; + const char *input, *input_end; Py_ssize_t dec_buffer_len; int dec_flags; |