mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-25 19:25:43 +00:00
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:
parent
f0f267ab03
commit
b85d962eba
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user