diff options
author | Fredrik Lundh <fredrik@pythonware.com> | 2005-12-25 11:40:19 (GMT) |
---|---|---|
committer | Fredrik Lundh <fredrik@pythonware.com> | 2005-12-25 11:40:19 (GMT) |
commit | c3389997d4d886d861061ae367211d271faaae2f (patch) | |
tree | a5f253ed467b698f4076dc85c454c47e1e8a4089 /Modules/_elementtree.c | |
parent | 428b413aaa4c05a3544c485f196e6cb36b15fd62 (diff) | |
download | cpython-c3389997d4d886d861061ae367211d271faaae2f.zip cpython-c3389997d4d886d861061ae367211d271faaae2f.tar.gz cpython-c3389997d4d886d861061ae367211d271faaae2f.tar.bz2 |
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 *"?)
Diffstat (limited to 'Modules/_elementtree.c')
-rw-r--r-- | Modules/_elementtree.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |