mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
bpo-39943: Add the const qualifier to pointers on non-mutable PyBytes data. (GH-19472)
This commit is contained in:
parent
3e0dd3730b
commit
8f87eefe7f
20 changed files with 38 additions and 37 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue