diff Objects/unicodeobject.c @ 12577:85f00f8cd674 legacy-trunk

Fix warning detected by VC++ on assignment of Py_UNICODE to char.
author Guido van Rossum <guido@python.org>
date Wed, 03 May 2000 23:58:29 +0000
parents 1c7c2dd1beb1
children 0bab1e36a3a6
line wrap: on
line diff
--- a/Objects/unicodeobject.c	Wed May 03 23:44:39 2000 +0000
+++ b/Objects/unicodeobject.c	Wed May 03 23:58:29 2000 +0000
@@ -2013,7 +2013,7 @@
 	    continue;
 	}
 	if (0 < ch && ch < 256) {
-	    *output++ = ch;
+	    *output++ = (char)ch;
 	    continue;
 	}
 	/* All other characters are considered invalid */