Fix some && within || warnings, no bug

This commit is contained in:
David Zbarsky
2012-10-15 21:00:21 -04:00
parent bacc7b9242
commit 4b19c3aab0
2 changed files with 4 additions and 4 deletions

View File

@@ -11110,7 +11110,7 @@ nsDocShell::AddURIVisit(nsIURI* aURI,
// 408 is special cased, since may actually indicate a temporary
// connection problem.
else if (aResponseStatus != 408 &&
(aResponseStatus >= 400 && aResponseStatus <= 501 ||
((aResponseStatus >= 400 && aResponseStatus <= 501) ||
aResponseStatus == 505)) {
visitURIFlags |= IHistory::UNRECOVERABLE_ERROR;
}

View File

@@ -181,8 +181,8 @@ int32_t EUCJPContextAnalysis::GetOrder(const char* str, uint32_t *charLen)
{
//find out current char's byte length
if ((unsigned char)*str == (unsigned char)0x8e ||
(unsigned char)*str >= (unsigned char)0xa1 &&
(unsigned char)*str <= (unsigned char)0xfe)
((unsigned char)*str >= (unsigned char)0xa1 &&
(unsigned char)*str <= (unsigned char)0xfe))
*charLen = 2;
else if ((unsigned char)*str == (unsigned char)0x8f)
*charLen = 3;