diff options
Diffstat (limited to 'src/expr/node_algorithm.cpp')
-rw-r--r-- | src/expr/node_algorithm.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/expr/node_algorithm.cpp b/src/expr/node_algorithm.cpp index 44430f072..358023647 100644 --- a/src/expr/node_algorithm.cpp +++ b/src/expr/node_algorithm.cpp @@ -622,13 +622,13 @@ void getComponentTypes( TypeNode curr = toProcess.back(); toProcess.pop_back(); // if not already visited - if (types.find(t) == types.end()) + if (types.find(curr) == types.end()) { - types.insert(t); + types.insert(curr); // get component types from the children - for (unsigned i = 0, nchild = t.getNumChildren(); i < nchild; i++) + for (unsigned i = 0, nchild = curr.getNumChildren(); i < nchild; i++) { - toProcess.push_back(t[i]); + toProcess.push_back(curr[i]); } } } while (!toProcess.empty()); |