Bug 940329: avoid warnings from using size_t in ImplCycleCollectionTraverse() r=ehsan

This commit is contained in:
Randell Jesup 2014-04-27 00:29:18 -04:00
parent 599c95157f
commit 1996771645
2 changed files with 4 additions and 4 deletions

View File

@ -1644,8 +1644,8 @@ ImplCycleCollectionTraverse(nsCycleCollectionTraversalCallback& aCallback,
uint32_t aFlags = 0)
{
aFlags |= CycleCollectionEdgeNameArrayFlag;
size_t length = aField.Length();
for (size_t i = 0; i < length; ++i) {
uint32_t length = aField.Length();
for (uint32_t i = 0; i < length; ++i) {
ImplCycleCollectionTraverse(aCallback, aField[i], aName, aFlags);
}
}

View File

@ -386,8 +386,8 @@ ImplCycleCollectionTraverse(nsCycleCollectionTraversalCallback& aCallback,
uint32_t aFlags = 0)
{
aFlags |= CycleCollectionEdgeNameArrayFlag;
size_t length = aField.Length();
for (size_t i = 0; i < length; ++i) {
uint32_t length = aField.Length();
for (uint32_t i = 0; i < length; ++i) {
ImplCycleCollectionTraverse(aCallback, aField.ElementAt(i), aName, aFlags);
}
}