This commit is contained in:
dbaron%dbaron.org 2003-01-18 18:37:41 +00:00
Родитель 9a2a8c1738
Коммит 405b8b2d16
1 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -63,7 +63,7 @@ struct AllocationNode {
nsAutoVoidArray pointers_from;
// Early on in the algorithm, the pre-order index from a DFS.
// Later on, set to the index of the strongly connected index to
// Later on, set to the index of the strongly connected component to
// which this node belongs.
PRUint32 index;
@ -215,10 +215,10 @@ int main(int argc, char **argv)
// When doing post-order processing, we have to be
// careful not to put reached nodes into the stack.
nsVoidArray &pf = n->pointers_to;
for (PRInt32 i = pf.Count() - 1; i >= 0; --i) {
if (!NS_STATIC_CAST(AllocationNode*, pf[i])->reached) {
stack.AppendElement(pf[i]);
nsVoidArray &pt = n->pointers_to;
for (PRInt32 i = pt.Count() - 1; i >= 0; --i) {
if (!NS_STATIC_CAST(AllocationNode*, pt[i])->reached) {
stack.AppendElement(pt[i]);
}
}
}