[Python-checkins] python/dist/src/Modules unicodedata.c,2.27,2.28

nnorwitz@users.sourceforge.net nnorwitz@users.sourceforge.net
Thu, 27 Feb 2003 19:14:40 -0800


Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv31129/Modules

Modified Files:
	unicodedata.c 
Log Message:
Fix SF bug #694816, remove comparison of unsigned value < 0


Index: unicodedata.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/unicodedata.c,v
retrieving revision 2.27
retrieving revision 2.28
diff -C2 -d -r2.27 -r2.28
*** unicodedata.c	7 Dec 2002 14:56:36 -0000	2.27
--- unicodedata.c	28 Feb 2003 03:14:37 -0000	2.28
***************
*** 34,38 ****
  {
      int index;
!     if (code < 0 || code >= 0x110000)
          index = 0;
      else {
--- 34,38 ----
  {
      int index;
!     if (code >= 0x110000)
          index = 0;
      else {
***************
*** 259,263 ****
  get_decomp_record(Py_UCS4 code, int *index, int *prefix, int *count)
  {
!     if (code < 0 || code >= 0x110000) {
          *index = 0;
      } 
--- 259,263 ----
  get_decomp_record(Py_UCS4 code, int *index, int *prefix, int *count)
  {
!     if (code >= 0x110000) {
          *index = 0;
      }