Use PRInt32 instead of PRUnichar to match everything else and handle EOF correctly. b=305947 r+sr=bzbarsky

This commit is contained in:
dbaron%dbaron.org 2005-08-27 05:59:51 +00:00
parent 1ab38be416
commit c7e63b955d

View File

@ -922,7 +922,7 @@ PRBool nsCSSScanner::ParseRef(nsresult& aErrorCode,
{
aToken.mIdent.SetLength(0);
aToken.mType = eCSSToken_Ref;
PRUnichar ch = Read(aErrorCode);
PRInt32 ch = Read(aErrorCode);
if (ch < 0) {
return PR_FALSE;
}