[Python-checkins] python/dist/src/Modules unicodedata.c,2.21,2.22
loewis@users.sourceforge.net
loewis@users.sourceforge.net
Sat, 23 Nov 2002 09:11:09 -0800
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv28452/Modules
Modified Files:
unicodedata.c
Log Message:
Fix off-by-one error.
Index: unicodedata.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/unicodedata.c,v
retrieving revision 2.21
retrieving revision 2.22
diff -C2 -d -r2.21 -r2.22
*** unicodedata.c 23 Nov 2002 12:22:32 -0000 2.21
--- unicodedata.c 23 Nov 2002 17:11:06 -0000 2.22
***************
*** 327,331 ****
unsigned char* w;
! if (SBase <= code && code <= SBase+SCount) {
/* Hangul syllable. */
int SIndex = code - SBase;
--- 327,331 ----
unsigned char* w;
! if (SBase <= code && code < SBase+SCount) {
/* Hangul syllable. */
int SIndex = code - SBase;