mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Fix warning detected by VC++ on assignment of Py_UNICODE to char.
This commit is contained in:
parent
b18618dab7
commit
42c29aaeb5
1 changed files with 1 additions and 1 deletions
|
@ -2013,7 +2013,7 @@ int PyUnicode_EncodeDecimal(Py_UNICODE *s,
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (0 < ch && ch < 256) {
|
if (0 < ch && ch < 256) {
|
||||||
*output++ = ch;
|
*output++ = (char)ch;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
/* All other characters are considered invalid */
|
/* All other characters are considered invalid */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue