Fix compile error

This commit is contained in:
Daniel Marjamäki 2020-07-21 17:43:12 +02:00
parent 2b968202bb
commit aad455e1ea
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ ErrorMessage::ErrorMessage(const ErrorPath &errorPath, const TokenList *tokenLis
std::ostringstream hashWarning;
for (const ErrorPathItem &e: errorPath)
hashWarning << std::hex << (tok ? tok->index() : 0) << " ";
hashWarning << std::hex << (e.first ? e.first->index() : 0) << " ";
hashWarning << mShortMessage;
hash = calculateWarningHash(tokenList, hashWarning.str());