From: Guido van Rossum Date: Wed, 5 Apr 2000 21:29:50 +0000 (+0000) Subject: Fredrik Lundh: eliminate a MSVC compiler warning. X-Git-Tag: v1.6a2~126 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=34888ed689f7e937cb784197002aee5ce335a6fa;p=python Fredrik Lundh: eliminate a MSVC compiler warning. --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index e751bc4334..b876f342fd 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -1959,7 +1959,7 @@ int PyUnicode_EncodeDecimal(Py_UNICODE *s, continue; } if (0 < ch < 256) { - *output++ = ch; + *output++ = (char) ch; continue; } /* All other characters are considered invalid */