summaryrefslogtreecommitdiff
path: root/Objects/unicodeobject.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2021-06-12 16:11:59 +0300
committerGitHub <noreply@github.com>2021-06-12 16:11:59 +0300
commitbe8b631b7a587aa781245e14c8cca32970e1be5b (patch)
treee754599e2e72d6e327667f1b8788f2d34d6fda36 /Objects/unicodeobject.c
parent9f1c5f6e8af6ba3f659b2aea1e221ac9695828ba (diff)
downloadcpython-git-be8b631b7a587aa781245e14c8cca32970e1be5b.tar.gz
Add more const modifiers. (GH-26691)
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 82f0b1afed..c316cafdc7 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -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];