Bug 502600 - Make quirky doctype list comparisons work. r+sr=mrbkap

This commit is contained in:
Henri Sivonen
2009-07-08 09:40:21 +03:00
parent d18d8e1c33
commit 39474984c2

View File

@@ -136,7 +136,7 @@ nsHtml5Portability::lowerCaseLiteralIsPrefixOfIgnoreAsciiCaseString(const char*
PRUnichar litChar;
while (litChar = *litPtr) {
NS_ASSERTION(!(litChar >= 'A' && litChar <= 'Z'), "Literal isn't in lower case.");
if (strPtr = end) {
if (strPtr == end) {
return PR_FALSE;
}
PRUnichar strChar = *strPtr;