]> granicus.if.org Git - python/commitdiff
Fix warning detected by VC++ on assignment of Py_UNICODE to char.
authorGuido van Rossum <guido@python.org>
Wed, 3 May 2000 23:58:29 +0000 (23:58 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 3 May 2000 23:58:29 +0000 (23:58 +0000)
Objects/unicodeobject.c

index 601b98716c4ff5a158a67e6c408499d2022f20f6..6cb1ea83ffc54eff99f6d07461a1465a7b4c4393 100644 (file)
@@ -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 */