Extract common check and run it first

This commit is contained in:
Dmitry-Me 2017-10-26 23:42:38 +03:00
parent 02e00a970b
commit 65b2755098
1 changed files with 4 additions and 2 deletions

View File

@ -2050,8 +2050,10 @@ void CheckIO::argumentType(std::ostream& os, const ArgumentInfo * argInfo)
if (argInfo->address)
os << " *";
} else {
if ((type->originalName() == "__int64" || type->originalName() == "__int32") && type->isUnsigned())
os << "unsigned ";
if (type->isUnsigned()) {
if (type->originalName() == "__int64" || type->originalName() == "__int32")
os << "unsigned ";
}
os << type->originalName();
if (type->strAt(1) == "*" || argInfo->address)
os << " *";