From 03f4889e153eac5dac7426968df30acb468b9112 Mon Sep 17 00:00:00 2001 From: Xiuheng Date: Fri, 9 Oct 2020 16:44:51 +0800 Subject: [PATCH] Fix loop range in isAnonymousRecord(string) --- Walker/ASTWalker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }