Fix gcc 3.3 warnings related to Py_UNICODE_WIDE.

This commit is contained in:
Hye-Shik Chang 2003-12-29 01:36:01 +00:00
parent f1ca7f561c
commit 7db07e6972
2 changed files with 24 additions and 3 deletions

View file

@ -36,9 +36,12 @@ gettyperecord(Py_UNICODE code)
{
int index;
#ifdef Py_UNICODE_WIDE
if (code >= 0x110000)
index = 0;
else {
else
#endif
{
index = index1[(code>>SHIFT)];
index = index2[(index<<SHIFT)+(code&((1<<SHIFT)-1))];
}