Universal Auto Detector regression fix.
/r=yokoyama, shanjian, /sr=jst, /a=asa


git-svn-id: svn://10.0.0.236/trunk@129194 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
yokoyama%netscape.com 2002-09-11 01:58:29 +00:00
parent 29bd38f228
commit fd9caff0bd

View File

@ -91,7 +91,7 @@ static unsigned char Latin1_CharToClass[] =
2 : normal
3 : very likely
*/
static char Latin1ClassModel[] =
static unsigned char Latin1ClassModel[] =
{
/* UDF OTH ASC ASS ACV ACO ASV ASO */
/*UDF*/ 0, 0, 0, 0, 0, 0, 0, 0,
@ -161,11 +161,11 @@ nsProbingState nsLatin1Prober::HandleData(const char* aBuf, PRUint32 aLen)
newLen1 = aLen;
}
char charClass;
char freq;
unsigned char charClass;
unsigned char freq;
for (PRUint32 i = 0; i < newLen1; i++)
{
charClass = Latin1_CharToClass[newBuf1[i]];
charClass = Latin1_CharToClass[(unsigned char)newBuf1[i]];
freq = Latin1ClassModel[mLastCharClass*CLASS_NUM + charClass];
if (freq == 0) {
mState = eNotMe;