Bug 494695 IsSpecialXHTMLTag warning: comparison between signed and unsigned
authortimeless@mozdev.org
Sat, 27 Jun 2009 18:42:51 -0700
changeset 29778 6e7a81c55a15
parent 29777 b371c9430539
child 29779 a4b3c7bb2fb0
push id106
push userhsivonen@iki.fi
push dateSun, 28 Jun 2009 17:44:42 +0000
bugs494695
milestone1.9.2a1pre
Bug 494695 IsSpecialXHTMLTag warning: comparison between signed and unsigned r+sr=bz
embedding/components/webbrowserpersist/src/nsWebBrowserPersist.cpp
--- a/embedding/components/webbrowserpersist/src/nsWebBrowserPersist.cpp
+++ b/embedding/components/webbrowserpersist/src/nsWebBrowserPersist.cpp
@@ -3903,17 +3903,17 @@ static const char kSpecialXHTMLTags[][11
 static PRBool IsSpecialXHTMLTag(nsIDOMNode *aNode)
 {
     nsAutoString tmp;
     aNode->GetNamespaceURI(tmp);
     if (!tmp.EqualsLiteral("http://www.w3.org/1999/xhtml"))
         return PR_FALSE;
 
     aNode->GetLocalName(tmp);
-    for (PRInt32 i = 0; i < NS_ARRAY_LENGTH(kSpecialXHTMLTags); i++) {
+    for (PRUint32 i = 0; i < NS_ARRAY_LENGTH(kSpecialXHTMLTags); i++) {
         if (tmp.EqualsASCII(kSpecialXHTMLTags[i]))
         {
             // XXX This element MAY have URI attributes, but
             //     we are not actually checking if they are present.
             //     That would slow us down further, and I am not so sure
             //     how important that would be.
             return PR_TRUE;
         }