]> granicus.if.org Git - python/commitdiff
Fredrik Lundh: eliminate a MSVC compiler warning.
authorGuido van Rossum <guido@python.org>
Wed, 5 Apr 2000 21:29:50 +0000 (21:29 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 5 Apr 2000 21:29:50 +0000 (21:29 +0000)
Objects/unicodeobject.c

index e751bc4334ddec3b94d7942e92544faca96e5997..b876f342fd76e784a401e6477547062792553545 100644 (file)
@@ -1959,7 +1959,7 @@ int PyUnicode_EncodeDecimal(Py_UNICODE *s,
            continue;
        }
        if (0 < ch < 256) {
-           *output++ = ch;
+           *output++ = (char) ch;
            continue;
        }
        /* All other characters are considered invalid */