summaryrefslogtreecommitdiffstats
path: root/Modules/_elementtree.c
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2005-12-25 11:40:19 (GMT)
committerFredrik Lundh <fredrik@pythonware.com>2005-12-25 11:40:19 (GMT)
commitc3389997d4d886d861061ae367211d271faaae2f (patch)
treea5f253ed467b698f4076dc85c454c47e1e8a4089 /Modules/_elementtree.c
parent428b413aaa4c05a3544c485f196e6cb36b15fd62 (diff)
downloadcpython-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.c2
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;