mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +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
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue