[Python-bugs-list] [ python-Bugs-694816 ] comparing unsigned value if < 0 (in unicodedata)

SourceForge.net noreply@sourceforge.net
Thu, 27 Feb 2003 19:14:56 -0800


Bugs item #694816, was opened at 2003-02-27 22:08
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=694816&group_id=5470

Category: Extension Modules
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Neal Norwitz (nnorwitz)
>Assigned to: Neal Norwitz (nnorwitz)
Summary: comparing unsigned value if < 0 (in unicodedata)

Initial Comment:
Modules/unicodedata.c, Line = 36
Modules/unicodedata.c, Line = 261

It seems the code < 0 condition can be safely removed
since it should always be false.

This problem was from bug #690012.


----------------------------------------------------------------------

>Comment By: Tim Peters (tim_one)
Date: 2003-02-27 22:14

Message:
Logged In: YES 
user_id=31435

Assigned back to you:  feel free to remove the useless 
code!  I vaguely remember this, and IIRC there *used* to 
be a possibility for 'code' to be of a signed type; there isn't 
anymore.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=694816&group_id=5470