mirror of
https://github.com/python/cpython.git
synced 2025-10-24 02:13:49 +00:00
bpo-39943: Add the const qualifier to pointers on non-mutable PyUnicode data. (GH-19345)
This commit is contained in:
parent
7ec43a7309
commit
cd8295ff75
27 changed files with 250 additions and 221 deletions
|
|
@ -259,7 +259,7 @@ STRINGLIB(utf8_decode)(const char **inptr, const char *end,
|
|||
Py_LOCAL_INLINE(char *)
|
||||
STRINGLIB(utf8_encoder)(_PyBytesWriter *writer,
|
||||
PyObject *unicode,
|
||||
STRINGLIB_CHAR *data,
|
||||
const STRINGLIB_CHAR *data,
|
||||
Py_ssize_t size,
|
||||
_Py_error_handler error_handler,
|
||||
const char *errors)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue