Fix bogus loop test that would never let the loop terminate. Bug 221289, patch

by tenthumbs@cybernex.net, r+sr=bzbarsky
This commit is contained in:
bzbarsky%mit.edu 2003-10-05 18:12:14 +00:00
parent f0f267ab03
commit b85d962eba

View File

@ -291,7 +291,8 @@ nsNode3Tearoff::SetTextContent(nsIContent* aContent,
{
PRUint32 childCount = aContent->GetChildCount();
for (PRUint32 i = childCount - 1; i >= 0; --i) {
// i is unsigned, so i >= is always true
for (PRUint32 i = childCount; i-- != 0; ) {
aContent->RemoveChildAt(i, PR_TRUE);
}