summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-05-03 23:58:29 (GMT)
committerGuido van Rossum <guido@python.org>2000-05-03 23:58:29 (GMT)
commit42c29aaeb56896edc856f021fa09fa83a5553356 (patch)
tree6ed0f84dc8043a973c027ff58e08f5db3d06e31e /Objects
parentb18618dab7b6b85bb05b084693706e59211fa180 (diff)
downloadcpython-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.c2
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 */