This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Pointless comparision of unsigned integer with zero
Type: Stage:
Components: None Versions: Python 2.6
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: Bugger, mark.dickinson
Priority: normal Keywords:

Created on 2010-01-13 14:01 by Bugger, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg97716 - (view) Author: Bugger (Bugger) Date: 2010-01-13 14:01
Hi,

small preprocessor warning.

Pointless comparision of unsigned integer with zero. Check PyMem_NEW.

Can an usigned int be smaller than 0? < comparision is "pointless" here.

Bye, Bugger
msg97718 - (view) Author: Mark Dickinson (mark.dickinson) * (Python committer) Date: 2010-01-13 14:10
Thanks for the report.

This was already fixed for the trunk in r76740 (and merged to py3k in r76741);  it doesn't particularly seem worth backporting the fix to the maintenance branches, since there's no real bug here.
History
Date User Action Args
2022-04-11 14:56:56adminsetgithub: 51941
2010-01-13 14:10:14mark.dickinsonsetstatus: open -> closed

nosy: + mark.dickinson
messages: + msg97718

resolution: out of date
2010-01-13 14:01:23Buggercreate