From c3389997d4d886d861061ae367211d271faaae2f Mon Sep 17 00:00:00 2001 From: Fredrik Lundh Date: Sun, 25 Dec 2005 11:40:19 +0000 Subject: SF#1389809 cast first PyUnicode_Decode argument to proper type (why is "char *" used for encoded byte streams, btw? shouldn't that be "void *" or, if necessary, "unsigned char *"?) --- Modules/_elementtree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_elementtree.c b/Modules/_elementtree.c index 6348f52..641f272 100644 --- a/Modules/_elementtree.c +++ b/Modules/_elementtree.c @@ -2146,7 +2146,7 @@ expat_unknown_encoding_handler(XMLParserObject *self, const XML_Char *name, for (i = 0; i < 256; i++) s[i] = i; - u = PyUnicode_Decode(s, 256, name, "replace"); + u = PyUnicode_Decode((char*) s, 256, name, "replace"); if (!u) return XML_STATUS_ERROR; -- cgit v0.12