mirror of
https://github.com/python/cpython.git
synced 2025-08-24 10:45:53 +00:00
[3.10] Add more const modifiers. (GH-26691). (GH-26692)
(cherry picked from commit be8b631b7a
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
parent
b441e99d89
commit
c43317d41e
7 changed files with 24 additions and 24 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