From 34888ed689f7e937cb784197002aee5ce335a6fa Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 5 Apr 2000 21:29:50 +0000 Subject: Fredrik Lundh: eliminate a MSVC compiler warning. --- Objects/unicodeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index e751bc4..b876f34 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 */ -- cgit v0.12