Token::expressionString(): Fixed output of library types

This commit is contained in:
Daniel Marjamäki 2017-07-22 16:42:42 +02:00
parent e58344c2c9
commit b41350e8d8
1 changed files with 1 additions and 1 deletions

View File

@ -1209,7 +1209,7 @@ static std::string stringFromTokenRange(const Token* start, const Token* end)
ret << "unsigned ";
if (tok->isLong())
ret << (tok->isLiteral() ? "L" : "long ");
if (tok->originalName().empty()) {
if (tok->originalName().empty() || tok->isUnsigned() || tok->isLong()) {
ret << tok->str();
} else
ret << tok->originalName();