mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
Fix gcc 3.3 warnings related to Py_UNICODE_WIDE.
This commit is contained in:
parent
f1ca7f561c
commit
7db07e6972
2 changed files with 24 additions and 3 deletions
|
|
@ -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))];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue