mirror of
https://github.com/python/cpython.git
synced 2025-08-25 03:04:55 +00:00
Add more const modifiers. (GH-26691)
This commit is contained in:
parent
9f1c5f6e8a
commit
be8b631b7a
9 changed files with 27 additions and 27 deletions
|
@ -658,7 +658,7 @@ unicode_result_ready(PyObject *unicode)
|
|||
if (length == 1) {
|
||||
int kind = PyUnicode_KIND(unicode);
|
||||
if (kind == PyUnicode_1BYTE_KIND) {
|
||||
Py_UCS1 *data = PyUnicode_1BYTE_DATA(unicode);
|
||||
const Py_UCS1 *data = PyUnicode_1BYTE_DATA(unicode);
|
||||
Py_UCS1 ch = data[0];
|
||||
struct _Py_unicode_state *state = get_unicode_state();
|
||||
PyObject *latin1_char = state->latin1[ch];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue