Fix warning detected by VC++ on assignment of Py_UNICODE to char.

This commit is contained in:
Guido van Rossum 2000-05-03 23:58:29 +00:00
parent b18618dab7
commit 42c29aaeb5

View file

@ -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 */