diff --git a/Walker/ASTWalker.cpp b/Walker/ASTWalker.cpp index 49ee3c8..70b4633 100644 --- a/Walker/ASTWalker.cpp +++ b/Walker/ASTWalker.cpp @@ -876,7 +876,7 @@ bool ASTWalker::isSource(std::string fileName){ */ bool ASTWalker::isAnonymousRecord(string qualName){ //Iterate through the anonymous names. - for (int i = 0; i < ANON_LIST->length(); i++){ + for (int i = 0; i < ANON_SIZE; i++){ if (ANON_LIST[i].compare(qualName) == 0) return true; }