mirror of https://github.com/python/cpython
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:
parent
428b413aaa
commit
c3389997d4
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue