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 *"?)
This commit is contained in:
Fredrik Lundh 2005-12-25 11:40:19 +00:00
parent 428b413aaa
commit c3389997d4
1 changed files with 1 additions and 1 deletions

View File

@ -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;