Bug 615437 warning: comparison between signed and unsigned integer expressions in nsXULCommandDispatcher::UpdateCommands
authortimeless@mozdev.org
Mon, 28 Mar 2011 17:26:33 -0400
changeset 64117 dd6d201316bb8dee95afc6cdd679a7bad7fd4d66
parent 64116 9f3bde4148003592895a2e4dbabf35b0f6566889
child 64118 3788ab7b5b4b1a5f14e371729a48057b054e049e
push idunknown
push userunknown
push dateunknown
bugs615437
milestone2.2a1pre
Bug 615437 warning: comparison between signed and unsigned integer expressions in nsXULCommandDispatcher::UpdateCommands r=neil
content/xul/document/src/nsXULCommandDispatcher.cpp
--- a/content/xul/document/src/nsXULCommandDispatcher.cpp
+++ b/content/xul/document/src/nsXULCommandDispatcher.cpp
@@ -418,17 +418,17 @@ nsXULCommandDispatcher::UpdateCommands(c
     nsCOMPtr<nsIContent> content = do_QueryInterface(updater->mElement);
     NS_ASSERTION(content != nsnull, "not an nsIContent");
     if (! content)
       return NS_ERROR_UNEXPECTED;
 
     updaters.AppendObject(content);
   }
 
-  for (PRUint32 u = 0; u < updaters.Count(); u++) {
+  for (PRInt32 u = 0; u < updaters.Count(); u++) {
     nsIContent* content = updaters[u];
 
     nsCOMPtr<nsIDocument> document = content->GetDocument();
 
     NS_ASSERTION(document != nsnull, "element has no document");
     if (! document)
       continue;