diff options
author | Guido van Rossum <guido@python.org> | 2000-05-03 23:58:29 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-05-03 23:58:29 (GMT) |
commit | 42c29aaeb56896edc856f021fa09fa83a5553356 (patch) | |
tree | 6ed0f84dc8043a973c027ff58e08f5db3d06e31e /Objects | |
parent | b18618dab7b6b85bb05b084693706e59211fa180 (diff) | |
download | cpython-42c29aaeb56896edc856f021fa09fa83a5553356.zip cpython-42c29aaeb56896edc856f021fa09fa83a5553356.tar.gz cpython-42c29aaeb56896edc856f021fa09fa83a5553356.tar.bz2 |
Fix warning detected by VC++ on assignment of Py_UNICODE to char.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/unicodeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |