[issue3642] Objects/obmalloc.c:529: warning: comparison is always false due to limited range of data type

Brett Cannon report at bugs.python.org
Wed Sep 10 07:41:13 CEST 2008


Brett Cannon <brett at python.org> added the comment:

Going with what Martin suggested, the attached patch reverts what
Christian did and adds an #ifdef sizeof(uint) <= sizeof(uint) around the
PY_SIZE_MAX check. Someone should obviously test on an AMD64 machine (I
have a Core 2 Mac, but I don't know what flags I would need to pass to
trigger the warning on my machine).

----------
assignee:  -> loewis
keywords: +patch
Added file: http://bugs.python.org/file11453/issue3642.diff

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


More information about the Python-bugs-list mailing list