C++ Builder: Fixed compiler error

This commit is contained in:
Daniel Marjamäki 2011-12-08 22:09:03 +01:00
parent 167a7e3e51
commit 60d828e778
1 changed files with 1 additions and 1 deletions

View File

@ -1243,7 +1243,7 @@ void CheckBufferOverrun::checkGlobalAndLocalVariable()
for (const Token *tok = _tokenizer->tokens(); tok; tok = tok->next()) {
if (Token::Match(tok, "%str% [ %num% ]")) {
std::string str = tok->strValue();
std::size_t index = atoi(tok->tokAt(2)->str().c_str());
std::size_t index = std::atoi(tok->tokAt(2)->str().c_str());
if (index > str.length()) {
bufferOverrunError(tok, tok->str());
}