arrayIndexOutOfBounds: better note

This commit is contained in:
Daniel Marjamäki 2017-05-23 16:06:32 +02:00
parent 41aa6dfb90
commit 70c2de62b7
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ void CheckBufferOverrun::arrayIndexOutOfBoundsError(const Token *tok, const Arra
} else {
errorPath.push_back(ErrorPathItem(tok, "Array index out of bounds"));
if (condition)
errorPath.push_back(ErrorPathItem(condition, "Condition '" + condition->expressionString() + "'"));
errorPath.push_back(ErrorPathItem(condition, "Assuming that condition '" + condition->expressionString() + "' is not redundant"));
}
if (condition != nullptr) {