diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-10-11 21:27:52 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-10-11 21:27:52 (GMT) |
commit | 4e10100dee015f9132122108eaf69fc1bc8369bf (patch) | |
tree | 800c924bc64eb80ffebd2cecf647c684ba9292d7 /Objects | |
parent | 8cc70dcf7020f1e5c286fed5b2a1034f5ba36afe (diff) | |
download | cpython-4e10100dee015f9132122108eaf69fc1bc8369bf.zip cpython-4e10100dee015f9132122108eaf69fc1bc8369bf.tar.gz cpython-4e10100dee015f9132122108eaf69fc1bc8369bf.tar.bz2 |
Fix compiler warning in _PyUnicode_FromUCS2()
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/unicodeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index b2b492a..1042254 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -1717,7 +1717,7 @@ _PyUnicode_FromUCS2(const Py_UCS2 *u, Py_ssize_t size) assert(size >= 0); 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++) { if (u[i] > max_char) { max_char = u[i]; |