Bug 849866 - fix signed/unsigned comparison warning in nsDocument::Register; r=smaug
authorNathan Froyd <froydnj@mozilla.com>
Mon, 11 Mar 2013 12:26:17 -0400
changeset 124381 b0ad066a12bca2f94e6a6c72b9977cacae203d7f
parent 124380 d4f5562cbabfa83b592668cc154bc3787bef79ca
child 124382 7b3da1dae19ae2fa087cfaa3e18dbbb6cda66d84
push id24417
push userryanvm@gmail.com
push dateMon, 11 Mar 2013 23:58:07 +0000
treeherdermozilla-central@7433bc4545c9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs849866
milestone22.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 849866 - fix signed/unsigned comparison warning in nsDocument::Register; r=smaug
content/base/src/nsDocument.cpp
--- a/content/base/src/nsDocument.cpp
+++ b/content/base/src/nsDocument.cpp
@@ -5023,17 +5023,17 @@ nsDocument::Register(JSContext* aCx, con
     }
   }
 
   // Associate the prototype with the custom element.
   mCustomPrototypes.Put(lcName, protoObject);
 
   // Do element upgrade.
   nsRefPtr<nsContentList> list = GetElementsByTagName(lcName);
-  for (int32_t i = 0; i < list->Length(false); i++) {
+  for (uint32_t i = 0; i < list->Length(false); i++) {
     nsCOMPtr<nsINode> oldNode = list->Item(i, false);
 
     // TODO(wchen): Perform upgrade on Shadow DOM when implemented.
     // Bug 806506.
     nsCOMPtr<nsINode> newNode;
     rv = nsNodeUtils::Clone(oldNode, true, getter_AddRefs(newNode));
     if (rv.Failed()) {
       return nullptr;