[Python-checkins] python/dist/src/Objects unicodectype.c,2.13,2.14

perky at users.sourceforge.net perky at users.sourceforge.net
Sun Dec 28 20:36:04 EST 2003


Update of /cvsroot/python/python/dist/src/Objects
In directory sc8-pr-cvs1:/tmp/cvs-serv16253/Objects
Modified Files:
	unicodectype.c 
Log Message:
Fix gcc 3.3 warnings related to Py_UNICODE_WIDE.
Index: unicodectype.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/unicodectype.c,v
retrieving revision 2.13
retrieving revision 2.14
diff -C2 -d -r2.13 -r2.14
*** unicodectype.c	18 Oct 2002 16:40:36 -0000	2.13
--- unicodectype.c	29 Dec 2003 01:36:01 -0000	2.14
***************
*** 37,43 ****
 int index;
 
 if (code >= 0x110000)
 index = 0;
! else {
 index = index1[(code>>SHIFT)];
 index = index2[(index<<SHIFT)+(code&((1<<SHIFT)-1))];
--- 37,46 ----
 int index;
 
+ #ifdef Py_UNICODE_WIDE
 if (code >= 0x110000)
 index = 0;
! else
! #endif
! {
 index = index1[(code>>SHIFT)];
 index = index2[(index<<SHIFT)+(code&((1<<SHIFT)-1))];


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /