From 42c29aaeb56896edc856f021fa09fa83a5553356 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 3 May 2000 23:58:29 +0000 Subject: Fix warning detected by VC++ on assignment of Py_UNICODE to char. --- Objects/unicodeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 601b987..6cb1ea8 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 */ -- cgit v0.12