mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 940329: avoid warnings from using size_t in ImplCycleCollectionTraverse() r=ehsan
This commit is contained in:
parent
599c95157f
commit
1996771645
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user