[issue14085] PyUnicode_WRITE: "comparison is always true" warnings

Stefan Krah report at bugs.python.org
Wed Feb 22 09:51:32 CET 2012


New submission from Stefan Krah <stefan-usenet at bytereef.org>:

The FreeBSD-9.0 bot shows a couple of warnings because some comparisons
in PyUnicode_WRITE are always true:

Objects/unicodeobject.c:2598: warning: comparison is always true due to limited range of data type
Objects/unicodeobject.c:2598: warning: comparison is always true due to limited range of data type
Objects/unicodeobject.c:2598: warning: comparison is always true due to limited range of data type
Objects/unicodeobject.c:2671: warning: comparison is always true due to limited range of data type
Objects/unicodeobject.c:2671: warning: comparison is always true due to limited range of data type

[...]

----------
components: Interpreter Core
messages: 153936
nosy: haypo, skrah
priority: normal
severity: normal
status: open
title: PyUnicode_WRITE: "comparison is always true" warnings
type: behavior
versions: Python 3.3

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


More information about the Python-bugs-list mailing list