mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Fix compiler warning in _PyUnicode_FromUCS2()
This commit is contained in:
parent
8cc70dcf70
commit
4e10100dee
1 changed files with 1 additions and 1 deletions
|
@ -1717,7 +1717,7 @@ _PyUnicode_FromUCS2(const Py_UCS2 *u, Py_ssize_t size)
|
||||||
|
|
||||||
assert(size >= 0);
|
assert(size >= 0);
|
||||||
if (size == 1 && u[0] < 256)
|
if (size == 1 && u[0] < 256)
|
||||||
return get_latin1_char(u[0]);
|
return get_latin1_char((unsigned char)u[0]);
|
||||||
for (i = 0; i < size; i++) {
|
for (i = 0; i < size; i++) {
|
||||||
if (u[i] > max_char) {
|
if (u[i] > max_char) {
|
||||||
max_char = u[i];
|
max_char = u[i];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue