[issue9566] Compilation warnings under x64 Windows

Martin v. Löwis report at bugs.python.org
Tue Jan 4 22:47:11 CET 2011


Martin v. Löwis <martin at v.loewis.de> added the comment:

haypo: please avoid introducing explicit casts (such as the one in pyexpat.c). Use SAFECASTs instead. If you are absolutely certain that a cast cannot possibly truncate, add a comment explaining why that is. In the specific case, I think it actually *is* possible that the cast truncates, because the case that read() returned too many bytes is incorrectly handled (it should set len to -1).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9566>
_______________________________________


More information about the Python-bugs-list mailing list