diff --git a/content/base/src/nsGenericElement.cpp b/content/base/src/nsGenericElement.cpp index 93680a85bd3d..5a0a395fc832 100644 --- a/content/base/src/nsGenericElement.cpp +++ b/content/base/src/nsGenericElement.cpp @@ -2483,7 +2483,7 @@ nsGenericElement::doRemoveChildAt(PRUint32 aIndex, PRBool aNotify, // was processing. if (guard.Mutated(0)) { aIndex = container->IndexOf(aKid); - if (aIndex < 0) { + if (NS_STATIC_CAST(PRInt32, aIndex) < 0) { return NS_OK; } }