mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue