[ python-Bugs-1389809 ] Fxn call in _elementtree.c has incorrect signedness

SourceForge.net noreply at sourceforge.net
Sun Dec 25 12:41:48 CET 2005


Bugs item #1389809, was opened at 2005-12-25 00:35
Message generated for change (Settings changed) made by effbot
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1389809&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Extension Modules
Group: Python 2.5
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Brett Cannon (bcannon)
Assigned to: Fredrik Lundh (effbot)
Summary: Fxn call in _elementtree.c has incorrect signedness

Initial Comment:
Line 2149 in Modules/_elementtree.c calls
PyUnicode_Decode() with an array of ``unsigned char``
while the definition of the function in
Objects/unicodeobject.c has the argument as ``const
char *``.

Here is the relevant output from the build:

/Users/drifty/Code/Trees/svn/python/trunk/Modules/_elementtree.c:
In function 'expat_unknown_encoding_handler':
/Users/drifty/Code/Trees/svn/python/trunk/Modules/_elementtree.c:2149:
warning: pointer targets in passing argument 1 of
'PyUnicodeUCS2_Decode' differ in signedness

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1389809&group_id=5470


More information about the Python-bugs-list mailing list