[issue9783] _elementtree.c warnings under 64-bit Windows

2012-07-21 Thread Florent Xicluna
Florent Xicluna added the comment: This warning is not specific to the _elementtree module. See related issue #9566. -- nosy: +eli.bendersky resolution: -> duplicate status: open -> closed superseder: -> Compilation warnings under x64 Windows ___ P

[issue9783] _elementtree.c warnings under 64-bit Windows

2010-09-25 Thread Jon Anglin
Jon Anglin added the comment: Martin is correct about this patch. > In cases where we really can't propagate Py_ssize_t to (e.g. > XML_Parse), we need to check for an int overflow, and raise > an exception if it does overflow. Is this an appropriate approach? int PySize_AsInt(Py_ssize_t value

[issue9783] _elementtree.c warnings under 64-bit Windows

2010-09-24 Thread Martin v . Löwis
Martin v. Löwis added the comment: > issue9783.diff provides a patch that will compile clean on 32 and 64 > bit Windows systems. I tried to avoid explicit casts where I could, > but it was not always possible. I have ported a lot of my company's > code to 64 bit (all Windows based). In my expe

[issue9783] _elementtree.c warnings under 64-bit Windows

2010-09-24 Thread Ned Deily
Changes by Ned Deily : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue9783] _elementtree.c warnings under 64-bit Windows

2010-09-23 Thread Jon Anglin
Jon Anglin added the comment: issue9783.diff provides a patch that will compile clean on 32 and 64 bit Windows systems. I tried to avoid explicit casts where I could, but it was not always possible. I have ported a lot of my company's code to 64 bit (all Windows based). In my experience man

[issue9783] _elementtree.c warnings under 64-bit Windows

2010-09-13 Thread Jon Anglin
Changes by Jon Anglin : -- nosy: +janglin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue9783] _elementtree.c warnings under 64-bit Windows

2010-09-12 Thread Martin v . Löwis
Martin v. Löwis added the comment: Instead of PyLong_FromLong((Py_uintptr_t) self); use PyLong_FromVoidPtr(self); For the others, I suggest making length and allocated Py_ssize_t; this is likely a pervasive change. Of course, very few people will currently run into XML documents where

[issue9783] _elementtree.c warnings under 64-bit Windows

2010-09-06 Thread Antoine Pitrou
New submission from Antoine Pitrou : Some of these warnings could be serious (e.g. the one where the 64-bit "self" is converted to a 32-bit "long"): 13>..\Modules\_elementtree.c(696) : warning C4244: 'function' : conversion from 'Py_uintptr_t' to 'long', possible loss of data 13>..\Modules\_el