fix mapping getter problem

This commit is contained in:
ftang%netscape.com 1999-08-18 07:34:00 +00:00
parent 7606cf018d
commit 47f17b7308

View File

@ -385,7 +385,7 @@ static nsUnicodeBlock gU0xxxMap[32]=
static nsUnicodeBlock GetBlockU0XXX(PRUnichar aChar)
{
nsUnicodeBlock res = gU0xxxMap[ (aChar >> 8) & 0x0F];
nsUnicodeBlock res = gU0xxxMap[ (aChar >> 7) & 0x1F];
if(res == kOthers) {
if((0x0200 <= aChar) && ( aChar <= 0x024F )) res = kLatin;
else if((0x0370 <= aChar) && ( aChar <= 0x037F )) res = kGreek;