From: Guido van Rossum Date: Wed, 3 May 2000 23:58:29 +0000 (+0000) Subject: Fix warning detected by VC++ on assignment of Py_UNICODE to char. X-Git-Tag: v2.0b1~1854 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=42c29aaeb56896edc856f021fa09fa83a5553356;p=python Fix warning detected by VC++ on assignment of Py_UNICODE to char. --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 601b98716c..6cb1ea83ff 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -2013,7 +2013,7 @@ int PyUnicode_EncodeDecimal(Py_UNICODE *s, continue; } if (0 < ch && ch < 256) { - *output++ = ch; + *output++ = (char)ch; continue; } /* All other characters are considered invalid */