summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
Diffstat (limited to 'Objects')
-rw-r--r--Objects/unicodeobject.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 4e4e53c..2c38ed0 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -1780,8 +1780,9 @@ unicode_adjust_maxchar(PyObject **p_unicode)
}
}
else {
+ const Py_UCS4 *u;
assert(kind == PyUnicode_4BYTE_KIND);
- const Py_UCS4 *u = PyUnicode_4BYTE_DATA(unicode);
+ u = PyUnicode_4BYTE_DATA(unicode);
max_char = 0;
for (i = 0; i < len; i++) {
if (u[i] > max_char) {