[New-bugs-announce] [issue3642] Objects/obmalloc.c:529: warning: comparison is always false due to limited range of data type
report at bugs.python.org
Fri Aug 22 03:03:01 CEST 2008
New submission from Christian Heimes <lists at cheimes.de>:
I'm getting a compiler warning on Linux AMD64. It's most probably an
issue related to 64bit builds, because size_t > uint_t on 64bit systems.
Such warnings may hide overflow issues.
gcc -pthread -c -fno-strict-aliasing -g -Wall -Wstrict-prototypes -I.
-IInclude -I./Include -DPy_BUILD_CORE -o Objects/obmalloc.o
Objects/obmalloc.c: In function 'new_arena':
Objects/obmalloc.c:529: warning: comparison is always false due to
limited range of data type
I was able to silence the compiler by declaring numarenas as size_t
instead of uint.
keywords: 64bit, needs review
priority: release blocker
title: Objects/obmalloc.c:529: warning: comparison is always false due to limited range of data type
type: compile error
versions: Python 2.6, Python 3.0
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce